Skip to content

Commit

Permalink
Don't minify function names so resource sound identification actually…
Browse files Browse the repository at this point in the history
… works.
  • Loading branch information
r-zander committed Dec 18, 2024
1 parent 52d2fbf commit 57a4f5e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 78 deletions.
106 changes: 29 additions & 77 deletions frontend/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 frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"mini-svg-data-uri": "^1.4.4",
"source-map-loader": "^5.0.0",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "^5.3.11",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
Expand Down
8 changes: 7 additions & 1 deletion frontend/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const webpack = require('webpack');
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");

module.exports = merge(common, {
Expand Down Expand Up @@ -39,7 +40,12 @@ module.exports = merge(common, {

optimization: {
minimizer: [
`...`,
new TerserPlugin({
terserOptions: {
keep_classnames: true,
keep_fnames: true,
},
}),
new CssMinimizerPlugin({
minimizerOptions: {
preset: [
Expand Down

0 comments on commit 57a4f5e

Please sign in to comment.