ssrwpo / uglifyjs2

Meteor package that exposes options for UglifyJS2 JS minifier
https://ssrwpo.github.io/uglifyjs2/
MIT License
14 stars 7 forks source link

drop_console: false does not show console in production #8

Closed tmpg closed 6 years ago

tmpg commented 6 years ago

drop_console: false does not show console in production.

package.json:
  "uglifyjs2": {
...
    "development": false,
    "drop_console": false
  },

Let me know if there is something else I should be doing.

PEM-- commented 6 years ago

Your usage puzzles me 🤔

tmpg commented 6 years ago

I am running a test on my production server. Is there something wrong with it technically?

PEM-- commented 6 years ago

Check your package.json. It seems that you have not set it properly. Here's an extract from the doc:

uglifyjs2: {
  ...
  options: {
    ...
    compress: {
      ...
      drop_console: true,
     ...
tmpg commented 6 years ago

Thanks, I missed the options key like a dummy.