From bd26de9cd9ee3fcab549f0105b81b243eb7327cb Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Mon, 6 Sep 2021 19:09:22 +0300 Subject: [PATCH] docs: improve readme for source maps --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 82b07b15..3608f846 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ module.exports = { > ⚠️ Note that if you import CSS from your webpack entrypoint or import styles in the [initial](https://webpack.js.org/concepts/under-the-hood/#chunks) chunk, `mini-css-extract-plugin` will not load this CSS into the page. Please use [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin) for automatic generation `link` tags or create `index.html` file with `link` tag. +> ⚠️ Source maps works only for `source-map`/`nosources-source-map`/`hidden-nosources-source-map`/`hidden-source-map` values because CSS only supports source maps with the `sourceMappingURL` comment (i.e. `//# sourceMappingURL=style.css.map`). If you need set `devtool` to another value you can enable source maps generation for extracted CSS using [`sourceMap: true`](https://github.com/webpack-contrib/css-loader#sourcemap) for `css-loader`. + ## Options ### Plugin Options