Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Jan 19, 2024
1 parent 7de33d5 commit 8ec557c
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 31 deletions.
2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

53 changes: 27 additions & 26 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"babel-loader": "^9.1.3",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"scripts": {
"create-release": "node create-release.js"
}
}
}
15 changes: 13 additions & 2 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: "./scripts/main.js",
Expand All @@ -7,7 +8,17 @@ module.exports = {
path: path.resolve(__dirname),
},
mode: "production",
devtool: 'source-map',
devtool: "source-map",
optimization: {
minimizer: [
new TerserPlugin({
terserOptions: {
keep_classnames: true,
keep_fnames: true,
},
}),
],
},
module: {
rules: [
{
Expand All @@ -19,4 +30,4 @@ module.exports = {
},
],
},
};
};

0 comments on commit 8ec557c

Please sign in to comment.