Skip to content

Commit

Permalink
Merge pull request #2078 from knowler/enable-sass-comments
Browse files Browse the repository at this point in the history
Enable Sass comments and run prefixing before minification
  • Loading branch information
retlehs authored Jun 11, 2018
2 parents 987a1d8 + 4a9094b commit 093b5a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/assets/build/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
};
7 changes: 6 additions & 1 deletion resources/assets/build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
],
}),
},
Expand Down

0 comments on commit 093b5a6

Please sign in to comment.