Skip to content

Commit

Permalink
chore: use webpack5
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal committed Apr 25, 2023
1 parent 0b2dd12 commit 3ebafde
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 152 deletions.
2 changes: 1 addition & 1 deletion packages/semi-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"gulp-sass": "^5.0.0",
"gulp-typescript": "^6.0.0-alpha.1",
"merge2": "^1.4.1",
"mini-css-extract-plugin": "0.11.3",
"mini-css-extract-plugin": "^2.7.5",
"rimraf": "^3.0.2",
"terser-webpack-plugin": "^4.2.3",
"through2": "^4.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/semi-icons/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function getWebpackConfig({ minimize }){
rules: [
{
test: /\.css$/,
loaders: [
use: [
{
loader: MiniCssExtractPlugin.loader
},
Expand All @@ -43,7 +43,7 @@ module.exports = function getWebpackConfig({ minimize }){
'process.env': { NODE_ENV: '"production"' }
}),
new CaseSensitivePathsPlugin(),
new webpack.HashedModuleIdsPlugin(),
new webpack.ids.HashedModuleIdsPlugin(),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
Expand Down
3 changes: 1 addition & 2 deletions packages/semi-illustrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"merge2": "^1.4.1",
"rimraf": "^3.0.2",
"terser-webpack-plugin": "^4.2.3",
"ts-loader": "^5.4.5",
"webpack": "^4.46.0"
"ts-loader": "^5.4.5"
},
"scripts": {
"clean": "rimraf dist lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-illustrations/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function getWebpackConfig({ minimize }){
'process.env': { NODE_ENV: '"production"' }
}),
new CaseSensitivePathsPlugin(),
new webpack.HashedModuleIdsPlugin(),
new webpack.ids.HashedModuleIdsPlugin(),
],
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json']
Expand Down
Loading

0 comments on commit 3ebafde

Please sign in to comment.