Skip to content

Commit

Permalink
Updated webpack to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
jahilldev committed Feb 18, 2021
1 parent c4535a7 commit 601a0d8
Show file tree
Hide file tree
Showing 3 changed files with 615 additions and 2,145 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@types/node": "14.14.19",
"@typescript-eslint/eslint-plugin": "4.15.1",
"@typescript-eslint/parser": "4.15.1",
"copy-webpack-plugin": "6.4.1",
"css-loader": "4.3.0",
"copy-webpack-plugin": "7.0.0",
"css-loader": "5.0.2",
"eslint": "7.20.0",
"eslint-config-preact": "1.1.3",
"eslint-config-prettier": "7.2.0",
Expand All @@ -41,13 +41,13 @@
"prettier": "2.2.1",
"rimraf": "3.0.2",
"sass": "1.32.7",
"sass-loader": "10.1.0",
"style-loader": "1.3.0",
"terser-webpack-plugin": "4.2.3",
"ts-loader": "8.0.13",
"sass-loader": "11.0.1",
"style-loader": "2.0.0",
"terser-webpack-plugin": "5.1.1",
"ts-loader": "8.0.17",
"typescript": "4.1.5",
"webpack": "4.44.2",
"webpack-assets-manifest": "3.1.1",
"webpack-cli": "3.3.12"
"webpack": "5.22.0",
"webpack-assets-manifest": "5.0.1",
"webpack-cli": "4.5.0"
}
}
6 changes: 2 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ const data = {
optimization: {
minimizer: [
new TerserPlugin({
cache: !RELEASE,
parallel: true,
terserOptions: {
keep_fnames: true,
Expand Down Expand Up @@ -210,7 +209,6 @@ const pages = {
optimization: {
minimizer: [
new TerserPlugin({
cache: !RELEASE,
parallel: true,
terserOptions: {
keep_fnames: true,
Expand Down Expand Up @@ -314,10 +312,10 @@ const entry = {
optimization: {
usedExports: true,
mergeDuplicateChunks: true,
moduleIds: 'hashed',
moduleIds: 'deterministic',
runtimeChunk: false,
splitChunks: {
name: true,
name: false,
chunks: 'async',
cacheGroups: {
default: false,
Expand Down
Loading

0 comments on commit 601a0d8

Please sign in to comment.