question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UglifyJS Reserved configuration

See original GitHub issue

Hey guys, is there anyway to use UglifyJS’s reserved config without ejecting?

I want to give Uglify a mangle config with reserved because my build is breaking. Anyway to do this?

{
    mangle: {
        // mangle options
      reserved: ["CID"]
    },
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Timercommented, Dec 5, 2017

Right now, yes @treygriffith. Sorry!

0reactions
gaearoncommented, Jan 8, 2018

We don’t intend to allow this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to use --reserved-names with UglifyJS.minify() · Issue #984
Question: how to use --reserved-names with UglifyJS.minify() #984 ... using a jsOptions JSON config because mangle: {} is not valid JSON.
Read more >
demo/node_modules/uglifyjs-webpack-plugin ... - GitLab
UglifyJS can take multiple input files. It's recommended that you pass the input files first, then pass the options. UglifyJS will parse input...
Read more >
Mangle nested classes and variables with UglifyJS
It also supports reserved files for excluding both object properties and variables that you don't want mangled. Check it out. Use the --mangle-props...
Read more >
How to Minify CSS/JS Files (Using UglifyJS and UglifyCSS)
In this cookbook, the installation, configuration and usage of UglifyJS is shown in detail. UglifyCSS works pretty much the same way and is...
Read more >
grunt-contrib-uglify-es - npm package - Snyk
You can specify identifiers to leave untouched with an reserved array in the mangle options. // Project configuration. grunt.initConfig({ uglify: { options: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found