Merge pull request #2078 from knowler/enable-sass-comments
Enable Sass comments and run prefixing before minification
This commit is contained in:
@@ -8,8 +8,8 @@ module.exports = ({ file, options }) => {
|
||||
return {
|
||||
parser: options.enabled.optimize ? 'postcss-safe-parser' : undefined,
|
||||
plugins: {
|
||||
cssnano: options.enabled.optimize ? cssnanoConfig : false,
|
||||
autoprefixer: true,
|
||||
cssnano: options.enabled.optimize ? cssnanoConfig : false,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@@ -89,7 +89,12 @@ let webpackConfig = {
|
||||
},
|
||||
},
|
||||
{ loader: 'resolve-url', options: { sourceMap: config.enabled.sourceMaps } },
|
||||
{ loader: 'sass', options: { sourceMap: config.enabled.sourceMaps } },
|
||||
{
|
||||
loader: 'sass', options: {
|
||||
sourceMap: config.enabled.sourceMaps,
|
||||
sourceComments: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
}),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user