Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description on how to disable mangling #35

Open
simmue opened this issue May 23, 2019 · 0 comments
Open

Add description on how to disable mangling #35

simmue opened this issue May 23, 2019 · 0 comments

Comments

@simmue
Copy link

simmue commented May 23, 2019

As already mentioned here #27, please add a description on how to disable mangling for ionic 3 due to the following issue: typeorm/typeorm#2164
I lost a lot of time because of this issue.

Description could be something like this:
Disable mangling as described under the following link:
https://ionicframework.com/docs/v3/developer-resources/app-scripts/

  1. Create a new file under ./config/uglifyjs.config
  2. Copy paste the following content
module.exports = {
  /**
   * mangle: uglify 2's mangle option
   */
  mangle: false,

  /**
   * compress: uglify 2's compress option
   */
  compress: {
    toplevel: true,
    pure_getters: true
  }
};
  1. Add the path to the file under package.json like this:
....
 "config": {
    "ionic_uglifyjs": "./config/uglifyjs.config.js"
  },
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant