We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to css/less/scss should trigger hmr
An error is printed in the web console
Uncaught Error: Invalid URL index.js:60 | ../../node_modules/mini-css-extract-plugin/node_modules/normalize-url/index.js.module.exports | @ | index.js:60 -- | -- | -- | -- | getReloadUrl | @ | hotModuleReplacement.js:118 | (anonymous) | @ | hotModuleReplacement.js:134 | reloadStyle | @ | hotModuleReplacement.js:133 | update | @ | hotModuleReplacement.js:170 | functionCall | @ | hotModuleReplacement.js:32 | setTimeout (async) | | | (anonymous) | @ | hotModuleReplacement.js:36 | hotApply | @ | bootstrap:555 | (anonymous) | @ | bootstrap:313 | Promise.then (async) | | | hotUpdateDownloaded | @ | bootstrap:312 | hotAddUpdateChunk | @ | bootstrap:288 | webpackHotUpdateCallback | @ | bootstrap:7 | (anonymous)
{ test: /\.css$/, use: [ { loader: MiniCssExtractPlugin.loader, options: { hmr: process.env.NODE_ENV !== "production" } }, "css-loader" ] },
{ plugins: [ new MiniCssExtractPlugin({ filename: '[name].css', chunkFilename: '[id].css' }) ] },
import "./style.css";
MVP project: https://github.com/pixelass/mini-css-extract-plugin-issue
git clone git@github.com:pixelass/mini-css-extract-plugin-issue.git cd mini-css-extract-plugin-issue yarn ## npm i yarn dev ## npm run dev
mini-css-extract-plugin-issue/src/styles.css
background: blue;
background: green;
might be related to #377
The text was updated successfully, but these errors were encountered:
The error occurs due to the following html-tag in my html template:
<link rel="canonical" content="<%= host %><%= location %>"/>
e.g.
<link rel="canonical" content="https://example.com"/>
(#377)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected Behavior
Changes to css/less/scss should trigger hmr
Actual Behavior
An error is printed in the web console
Code
How Do We Reproduce?
MVP project: https://github.com/pixelass/mini-css-extract-plugin-issue
mini-css-extract-plugin-issue/src/styles.css
background: blue;
tobackground: green;
might be related to #377
The text was updated successfully, but these errors were encountered: