Skip to content

Commit 5b035ec

Browse files
committed
Upgrade frontend dependencies
1 parent 69371e0 commit 5b035ec

26 files changed

+2352
-2427
lines changed

config/webpack-dev-server.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,14 @@ module.exports = {
5656
options: {
5757
plugins: [
5858
require('postcss-import')(),
59-
require('postcss-cssnext')(),
60-
require('postcss-flexbugs-fixes')()
59+
require('postcss-flexbugs-fixes')(),
60+
require('postcss-preset-env')({
61+
stage: 0,
62+
autoprefixer: {
63+
flexbox: 'no-2009',
64+
grid: true,
65+
}
66+
}),
6167
]
6268
}
6369
}

config/webpack.config.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22
const webpack = require('webpack');
33
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4-
const CleanWebpackPlugin = require('clean-webpack-plugin');
4+
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
55
const PostCSSAssetsPlugin = require('postcss-assets-webpack-plugin');
66
const ManifestPlugin = require('webpack-manifest-plugin');
77

@@ -44,6 +44,7 @@ module.exports = () => {
4444
'@babel/preset-env',
4545
{
4646
useBuiltIns: 'entry',
47+
corejs: 3,
4748
modules: false,
4849
debug: false,
4950
}
@@ -71,8 +72,14 @@ module.exports = () => {
7172
options: {
7273
plugins: [
7374
require('postcss-import')(),
74-
require('postcss-cssnext')(),
75-
require('postcss-flexbugs-fixes')()
75+
require('postcss-flexbugs-fixes')(),
76+
require('postcss-preset-env')({
77+
stage: 0,
78+
autoprefixer: {
79+
flexbox: 'no-2009',
80+
grid: true,
81+
}
82+
}),
7683
]
7784
}
7885
}
@@ -103,9 +110,7 @@ module.exports = () => {
103110
],
104111
},
105112
plugins: [
106-
new CleanWebpackPlugin([targetPath + '/*'], {
107-
root: process.cwd()
108-
}),
113+
new CleanWebpackPlugin(),
109114
// https://webpack.js.org/guides/caching/#module-identifiers
110115
new webpack.HashedModuleIdsPlugin(),
111116
new MiniCssExtractPlugin({

0 commit comments

Comments
 (0)