From f4d834214a9926052d70e12f1d8d435d9474006f Mon Sep 17 00:00:00 2001 From: Nathan Knowler Date: Sat, 9 Jun 2018 09:49:08 -0600 Subject: [PATCH 1/3] Enable source comments in Sass --- resources/assets/build/webpack.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/assets/build/webpack.config.js b/resources/assets/build/webpack.config.js index 5d1c538f..25a4c098 100644 --- a/resources/assets/build/webpack.config.js +++ b/resources/assets/build/webpack.config.js @@ -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 + } + }, ], }), }, From 33c81a9c72a4cc5cee10479b782b9afb2c81c414 Mon Sep 17 00:00:00 2001 From: Nathan Knowler Date: Sat, 9 Jun 2018 09:49:34 -0600 Subject: [PATCH 2/3] Run autoprefixer before minification --- resources/assets/build/postcss.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/build/postcss.config.js b/resources/assets/build/postcss.config.js index 6e6dd87c..ef025543 100644 --- a/resources/assets/build/postcss.config.js +++ b/resources/assets/build/postcss.config.js @@ -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, }, }; }; From 04362989b6598ca8bf053e84ee2cfc0e71352ab9 Mon Sep 17 00:00:00 2001 From: Nathan Knowler Date: Sat, 9 Jun 2018 10:34:55 -0600 Subject: [PATCH 3/3] Add missing trailing commas in f4d8342 Forgot to lint. --- resources/assets/build/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/build/webpack.config.js b/resources/assets/build/webpack.config.js index 25a4c098..888a1a6b 100644 --- a/resources/assets/build/webpack.config.js +++ b/resources/assets/build/webpack.config.js @@ -92,8 +92,8 @@ let webpackConfig = { { loader: 'sass', options: { sourceMap: config.enabled.sourceMaps, - sourceComments: true - } + sourceComments: true, + }, }, ], }),