diff --git a/lib/loaders/sass.js b/lib/loaders/sass.js index 9f9858b2..002fe6b9 100644 --- a/lib/loaders/sass.js +++ b/lib/loaders/sass.js @@ -41,7 +41,9 @@ module.exports = { const config = Object.assign({}, { // needed by the resolve-url-loader - sourceMap: (true === webpackConfig.sassOptions.resolveUrlLoader) || webpackConfig.useSourceMaps + sourceMap: (true === webpackConfig.sassOptions.resolveUrlLoader) || webpackConfig.useSourceMaps, + // CSS minification is handled with mini-css-extract-plugin + outputStyle: 'expanded' }); sassLoaders.push({ diff --git a/test/loaders/sass.js b/test/loaders/sass.js index e3fe1b98..90772a07 100644 --- a/test/loaders/sass.js +++ b/test/loaders/sass.js @@ -120,6 +120,7 @@ describe('loaders/sass', () => { expect(actualLoaders[1].options).to.deep.equals({ sourceMap: true, + outputStyle: 'expanded', custom_optiona: 'baz', other_option: true });