aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-09-10 21:15:15 +0300
committerGravatar Vitaly Takmazov2020-09-10 21:15:15 +0300
commit613d1f98624a762cab61d807061705ed17f41b7f (patch)
treefbfd2f46b4b25fc2c1cf079b3bed717d05c94ca2 /webpack.config.js
parent74ac239f422136d59d8d2fda4903ca87f23686b2 (diff)
Update deps
* Fix breaking changes compatibility with nimbus-jose-jwt 9.0 and postcss-loader 4.0
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({})
]
};
}