diff --git a/CHANGELOG.md b/CHANGELOG.md index 6483443c..6e6cf3a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file. See [standa * minimum required `webpack` version is `4.36.0` * minimum required `node.js` version is `8.9.0` -* move all sass (`includePaths`, `importer`, `functions`) options to the `sassOptions` option. The `functions` option can't be used as `Function`, you should use `sassOption` as `Function` to achieve this. +* move all sass (`includePaths`, `importer`, `functions`, `outputStyle`) options to the `sassOptions` option. The `functions` option can't be used as `Function`, you should use `sassOption` as `Function` to achieve this. * the `data` option was renamed to the `prependData` option * default value of the `sourceMap` option depends on the `devtool` value (`eval`/`false` values don't enable source map generation) diff --git a/README.md b/README.md index 2f71e70d..1c21336f 100644 --- a/README.md +++ b/README.md @@ -438,7 +438,21 @@ module.exports = { }; ``` -> ℹ In some rare cases `node-sass` can output invalid source maps (it is a `node-sass` bug). In order to avoid this, you can try to update `node-sass` to latest version or you can try to set the `outputStyle` option to `compressed`. +> ℹ In some rare cases `node-sass` can output invalid source maps (it is a `node-sass` bug). In order to avoid this, you can try to update `node-sass` to latest version or you can try to set within `sassOptions` the `outputStyle` option to `compressed`. + +```js +{ + loader: 'sass-loader', + options: { + sassOptions: { + outputStyle: 'compressed', + }, + sourceMap: true, + }, +} +``` + + ### `webpackImporter`