Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package updates, security fixes, and performance optimizations (#137)
* Upgrading marked for security fix * upgrading outdated packages * configuring new minimizer for JS * adding package-lock.json * fixing linting errors * Removing unused webpack packages * fixing unit test when redis isn't available * Updating yarn.lock * Revert "adding package-lock.json" This reverts commit 50313a0. * Modifying imports to reduce bundle sizes * Changing webpack build settings for prod and dev * Adding precommit checks to the project
- Loading branch information
Showing
10 changed files
with
1,702 additions
and
1,028 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ node_modules | |
tmp | ||
npm-debug.log | ||
public/app.js | ||
public/app.js.* | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin') | ||
const TerserPlugin = require('terser-webpack-plugin') | ||
const webpack = require('webpack') | ||
|
||
module.exports = { | ||
mode: 'production', | ||
stats: 'minimal', | ||
optimization: { | ||
minimizer: [new TerserPlugin({ | ||
extractComments: true | ||
})] | ||
}, | ||
performance: { | ||
hints: false | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env': { | ||
NODE_ENV: JSON.stringify('production') | ||
} | ||
}), | ||
new UglifyJSPlugin() | ||
}) | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.