Skip to content

Commit

Permalink
Specified Uglify configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblanc committed Aug 7, 2023
1 parent b2949d9 commit ebcfbb5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/amazon-cognito-identity-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"react": "^16.0.0",
"rimraf": "^2.5.4",
"compression-webpack-plugin": "^1.1.12",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^4.46.0",
"webpack-cli": "^4.10.0"
}
Expand Down
9 changes: 9 additions & 0 deletions packages/amazon-cognito-identity-js/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Webpack version: ^4.46.0
const CompressionPlugin = require('compression-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

/* eslint-disable */
var webpack = require('webpack');
Expand Down Expand Up @@ -32,6 +33,14 @@ var config = {
include: /\.min\.js$/,
}),
],
optimization: {
minimizer: [
new UglifyJsPlugin({
sourceMap: true,
include: /\.min\.js$/,
})
]
},
mode: 'production',
module: {
rules: [
Expand Down
19 changes: 17 additions & 2 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ebcfbb5

Please sign in to comment.