Skip to content

Commit dd04e64

Browse files
committed
chore: enable css grid fallbacks and show unminified CSS in non-production environments
1 parent 9f5e461 commit dd04e64

File tree

3 files changed

+39
-13
lines changed

3 files changed

+39
-13
lines changed

package-lock.json

Lines changed: 30 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

postcss.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const autoprefixer = require('autoprefixer');
2+
13
module.exports = {
2-
plugins: [require('autoprefixer')]
4+
plugins: [autoprefixer({grid: true})]
35
};

webpack.common.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ module.exports = {
4141
},
4242
{
4343
loader: 'sass-loader',
44-
options: { sourceMap: !PRODUCTION }
44+
options: {
45+
sourceMap: !PRODUCTION,
46+
sassOptions: {
47+
outputStyle: PRODUCTION ? 'compressed' : 'expanded'
48+
}
49+
}
4550
}
4651
]
4752
},

0 commit comments

Comments
 (0)