Skip to content

Commit 601a0d8

Browse files
committed
Updated webpack to v5
1 parent c4535a7 commit 601a0d8

File tree

3 files changed

+615
-2145
lines changed

3 files changed

+615
-2145
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"@types/node": "14.14.19",
2626
"@typescript-eslint/eslint-plugin": "4.15.1",
2727
"@typescript-eslint/parser": "4.15.1",
28-
"copy-webpack-plugin": "6.4.1",
29-
"css-loader": "4.3.0",
28+
"copy-webpack-plugin": "7.0.0",
29+
"css-loader": "5.0.2",
3030
"eslint": "7.20.0",
3131
"eslint-config-preact": "1.1.3",
3232
"eslint-config-prettier": "7.2.0",
@@ -41,13 +41,13 @@
4141
"prettier": "2.2.1",
4242
"rimraf": "3.0.2",
4343
"sass": "1.32.7",
44-
"sass-loader": "10.1.0",
45-
"style-loader": "1.3.0",
46-
"terser-webpack-plugin": "4.2.3",
47-
"ts-loader": "8.0.13",
44+
"sass-loader": "11.0.1",
45+
"style-loader": "2.0.0",
46+
"terser-webpack-plugin": "5.1.1",
47+
"ts-loader": "8.0.17",
4848
"typescript": "4.1.5",
49-
"webpack": "4.44.2",
50-
"webpack-assets-manifest": "3.1.1",
51-
"webpack-cli": "3.3.12"
49+
"webpack": "5.22.0",
50+
"webpack-assets-manifest": "5.0.1",
51+
"webpack-cli": "4.5.0"
5252
}
5353
}

webpack.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ const data = {
8686
optimization: {
8787
minimizer: [
8888
new TerserPlugin({
89-
cache: !RELEASE,
9089
parallel: true,
9190
terserOptions: {
9291
keep_fnames: true,
@@ -210,7 +209,6 @@ const pages = {
210209
optimization: {
211210
minimizer: [
212211
new TerserPlugin({
213-
cache: !RELEASE,
214212
parallel: true,
215213
terserOptions: {
216214
keep_fnames: true,
@@ -314,10 +312,10 @@ const entry = {
314312
optimization: {
315313
usedExports: true,
316314
mergeDuplicateChunks: true,
317-
moduleIds: 'hashed',
315+
moduleIds: 'deterministic',
318316
runtimeChunk: false,
319317
splitChunks: {
320-
name: true,
318+
name: false,
321319
chunks: 'async',
322320
cacheGroups: {
323321
default: false,

0 commit comments

Comments
 (0)