terser Questions
2
I'm working on a single-file script that is meant to be included on pages through a <script> tag, it's being built with Vite.js using the Terser minifier.
After making changes I noticed that ...
Gilboa asked 3/10, 2021 at 18:5
2
Solved
So I'm using terser with gulp and have tried several combinations but nothing seems to minify the function names here is an example:
function minify() {
return gulp.src('js/**/*.js')
.pipe(gTer...
2
Solved
one of our third party libraries requires us to preserve specific function names. in webpack we did that with terser.keep_fnames. esbuild has https://esbuild.github.io/api/#keep-names so we'd like ...
2
We've been using UglifyJS and webpack v4 for our react code, but then just updated to webpack v5. It appears that UglifyJS does not work with webpack v5. Is there an alternative? We need something ...
3
The resulting code is minified but almost not mangled. This is how it looks like in the Google Chrome (beautified):
All properties names, lots of variables have their original names.
Even with T...
Samaritan asked 13/11, 2019 at 10:31
3
I am trying to minify an angularjs application using grunt and terser. I first used uglifiy-es but then read that it has some issues. So I tried terser. But the output does not give me minified fil...
Shavian asked 10/6, 2019 at 5:31
1
TypeError: Cannot read property 'javascript' of undefined + terser webpack plugin + react js
I recently added terser-webpack-plugin to minify my create react app code. But while build the project I got an error like TypeError: Cannot read property 'javascript' of undefined. Below are some ...
0
I've got a function defined in an ES module that I'd like to make sure inlines. This works fine when it's only used in one chunk, but if I call the function from two separate chunks, webpack genera...
Squamosal asked 21/5, 2020 at 8:6
1
So I'm trying to run webpack to compile my code, but when I run npx webpack --config webpack.config.js I get the following error:
ERROR in main.js from Terser
Invalid assignment [main.js:78674,15]...
Kurtkurth asked 6/4, 2020 at 20:49
0
One of my Node Modules in my React project uses vm.runincontext and this code isn't being able to run while minified. My current solution has been to turn minification off and it works it just make...
1
Solved
Classnames are mangled during minification, but that should not be done
I tried setting the reserved property when mangling as described here https://github.com/webpack-contrib/terser-webpack-plug...
1
Solved
I'm using Vue CLI 3, and I need to add the Terser Webpack Plugin for removing console.log and comments from the code. This isn't working with my current setup - logs and comments are still in the b...
Serenity asked 10/10, 2019 at 18:24
1
Solved
I'm using VUE CLI 3 and I need to remove the console.log and code comments from the production built. This is my Terser setup:
webpack.config.js in src folder
module.exports = {
mode: 'production'...
1
© 2022 - 2024 — McMap. All rights reserved.