Skip to content

Commit

Permalink
do not create license.txt during webpack build
Browse files Browse the repository at this point in the history
the license.txt did not reflect actual licenses of the project. Not sure why it just started happening now. docs for future reference:
webpack-contrib/terser-webpack-plugin#383
webpack-contrib/terser-webpack-plugin#229 (comment)
  • Loading branch information
kfarr committed Aug 3, 2023
1 parent 8692d82 commit ca8165e
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 40 deletions.
101 changes: 61 additions & 40 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"rewire": "^5.0.0",
"semistandard": "^14.2.0",
"snazzy": "^8.0.0",
"terser-webpack-plugin": "^5.3.9",
"webpack": "^5.75.0",
"webpack-cli": "^4.2.0"
},
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
entry: './src/index.js',
Expand All @@ -11,5 +12,8 @@ module.exports = {
rules: [
{ test: /\.js$/, loader: 'babel-loader' }
]
},
optimization: {
minimizer: [new TerserPlugin({ extractComments: false })],
}
};

0 comments on commit ca8165e

Please sign in to comment.