Skip to content

Commit 635fb7c

Browse files
committed
chore: update dep
1 parent 3b2a717 commit 635fb7c

14 files changed

+5
-102
lines changed

config/webpack.common.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const HtmlWebpackPlugin = require('html-webpack-plugin')
22
const CopyWebpackPlugin = require('copy-webpack-plugin')
33
const { WebpackManifestPlugin } = require('webpack-manifest-plugin')
4-
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
54

65
const paths = require('./paths')
76

@@ -79,20 +78,6 @@ module.exports = {
7978
new WebpackManifestPlugin({
8079
fileName: 'asset-manifest.json', // Not to confuse with manifest.json
8180
}),
82-
// SW plugin configuration
83-
// The following option parameters and configuration are directly taken from react-create-app
84-
// as it's a production ready configuration that works pretty well for our needs.
85-
// new SWPrecacheWebpackPlugin({
86-
// By default, a cache-busting query parameter is appended to requests
87-
// used to populate the caches, to ensure the responses are fresh.
88-
// If a URL is already hashed by Webpack, then there is no concern
89-
// about it being stale, and the cache-busting can be skipped.
90-
// dontCacheBustUrlsMatching: /\.\w{8}\./,
91-
// filename: 'service-worker.js',
92-
// minify: true, // minify and uglify the script
93-
// navigateFallback: '/index.html',
94-
// staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/]
95-
// }),
9681
],
9782
module: {
9883
rules: [

config/webpack.config.prod.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const webpack = require('webpack')
22
const { merge } = require('webpack-merge')
33
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
4-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
4+
const TerserPlugin = require('terser-webpack-plugin')
55
const CompressionPlugin = require('compression-webpack-plugin')
66
// const ManifestPlugin = require('webpack-manifest-plugin')
77

@@ -15,20 +15,7 @@ module.exports = merge(common, {
1515
app: paths.appIndex
1616
},
1717
optimization: {
18-
minimizer: [
19-
new UglifyJsPlugin({
20-
uglifyOptions: {
21-
compress: {
22-
// remove console logs
23-
drop_console: true
24-
},
25-
output: {
26-
// remove comments
27-
comments: false
28-
}
29-
}
30-
})
31-
],
18+
minimizer: [new TerserPlugin()],
3219
// extract css to single file
3320
splitChunks: {
3421
cacheGroups: {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
"styled-components": "^4.0.0-beta.1",
9999
"styled-icons": "^3.7.0",
100100
"styled-is": "^1.1.5",
101-
"styled-system": "^3.2.1"
101+
"styled-system": "^3.2.1",
102+
"workbox-webpack-plugin": "^7.0.0"
102103
},
103104
"devDependencies": {
104105
"@babel/cli": "^7.0.0",
@@ -140,8 +141,7 @@
140141
"redux-thunk": "^2.1.0",
141142
"regenerator-runtime": "^0.13.11",
142143
"style-loader": "^3.3.3",
143-
"sw-precache-webpack-plugin": "^1.0.0",
144-
"uglifyjs-webpack-plugin": "^2.2.0",
144+
"terser-webpack-plugin": "^5.3.9",
145145
"url-loader": "^4.1.1",
146146
"webpack": "^5.88.2",
147147
"webpack-bundle-analyzer": "^4.9.0",
-7.36 KB
Binary file not shown.

public/app.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/app.bundle.js.gz

-15 KB
Binary file not shown.

public/asset-manifest.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

public/index.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

public/index.html.gz

-671 Bytes
Binary file not shown.

public/launchericon_192x192.png

-13 KB
Binary file not shown.

0 commit comments

Comments
 (0)