Skip to content

Commit

Permalink
chore: update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
otech47 committed Jul 31, 2023
1 parent 3b2a717 commit 635fb7c
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 102 deletions.
15 changes: 0 additions & 15 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const { WebpackManifestPlugin } = require('webpack-manifest-plugin')
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');

const paths = require('./paths')

Expand Down Expand Up @@ -79,20 +78,6 @@ module.exports = {
new WebpackManifestPlugin({
fileName: 'asset-manifest.json', // Not to confuse with manifest.json
}),
// SW plugin configuration
// The following option parameters and configuration are directly taken from react-create-app
// as it's a production ready configuration that works pretty well for our needs.
// new SWPrecacheWebpackPlugin({
// By default, a cache-busting query parameter is appended to requests
// used to populate the caches, to ensure the responses are fresh.
// If a URL is already hashed by Webpack, then there is no concern
// about it being stale, and the cache-busting can be skipped.
// dontCacheBustUrlsMatching: /\.\w{8}\./,
// filename: 'service-worker.js',
// minify: true, // minify and uglify the script
// navigateFallback: '/index.html',
// staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/]
// }),
],
module: {
rules: [
Expand Down
17 changes: 2 additions & 15 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const webpack = require('webpack')
const { merge } = require('webpack-merge')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
const CompressionPlugin = require('compression-webpack-plugin')
// const ManifestPlugin = require('webpack-manifest-plugin')

Expand All @@ -15,20 +15,7 @@ module.exports = merge(common, {
app: paths.appIndex
},
optimization: {
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
compress: {
// remove console logs
drop_console: true
},
output: {
// remove comments
comments: false
}
}
})
],
minimizer: [new TerserPlugin()],
// extract css to single file
splitChunks: {
cacheGroups: {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
"styled-components": "^4.0.0-beta.1",
"styled-icons": "^3.7.0",
"styled-is": "^1.1.5",
"styled-system": "^3.2.1"
"styled-system": "^3.2.1",
"workbox-webpack-plugin": "^7.0.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
Expand Down Expand Up @@ -140,8 +141,7 @@
"redux-thunk": "^2.1.0",
"regenerator-runtime": "^0.13.11",
"style-loader": "^3.3.3",
"sw-precache-webpack-plugin": "^1.0.0",
"uglifyjs-webpack-plugin": "^2.2.0",
"terser-webpack-plugin": "^5.3.9",
"url-loader": "^4.1.1",
"webpack": "^5.88.2",
"webpack-bundle-analyzer": "^4.9.0",
Expand Down
Binary file removed public/2555675a7cd23481341e2e6adabac731.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/app.bundle.js

This file was deleted.

Binary file removed public/app.bundle.js.gz
Binary file not shown.
12 changes: 0 additions & 12 deletions public/asset-manifest.json

This file was deleted.

35 changes: 0 additions & 35 deletions public/index.html

This file was deleted.

Binary file removed public/index.html.gz
Binary file not shown.
Binary file removed public/launchericon_192x192.png
Binary file not shown.
Binary file removed public/launchericon_512x512.png
Binary file not shown.
20 changes: 0 additions & 20 deletions public/manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion public/vendor.bundle.js

This file was deleted.

Binary file removed public/vendor.bundle.js.gz
Binary file not shown.

0 comments on commit 635fb7c

Please sign in to comment.