aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/webpack.config.js b/webpack.config.js
index d612fb13..ec459ace 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -40,16 +40,19 @@ module.exports = (env, argv) => {
{
test: /\.css$/,
use: [
- dev? 'style-loader' : MiniCssExtractPlugin.loader,
+ dev ? 'style-loader' : MiniCssExtractPlugin.loader,
{
loader: 'css-loader'
},
{
- loader: 'postcss-loader', options: {
- plugins: () => [
- require('stylelint')(),
- require('postcss-preset-env')({ stage: 0, autoprefixer: { grid: true } })
- ]
+ loader: 'postcss-loader',
+ options: {
+ postcssOptions: {
+ plugins: [
+ 'stylelint',
+ ['postcss-preset-env', { stage: 0, autoprefixer: { grid: true } }]
+ ]
+ }
}
}
]
@@ -80,7 +83,7 @@ module.exports = (env, argv) => {
},
extractComments: true
}),
- new OptimizeCSSAssetsPlugin({})
+ new OptimizeCSSAssetsPlugin({})
]
};
}