gruntjs / grunt-contrib-uglify

Minify files with UglifyJS.
http://gruntjs.com/
MIT License
1.48k stars 347 forks source link

Uglification failed. `warnings` is not a supported option. #540

Closed Morialkar closed 5 years ago

Morialkar commented 5 years ago

Hi all, this is my grunt configuration for Uglify, and reading the docs it's supposed to be correct, was working correctly not 2 weeks ago and not I get the error in the title.

uglify: {
      options: {
        compress: {
          warnings: true
        },
        mangle: true,
        preserveComments: /^!|@preserve|@license|@cc_on/i
      },
      core: {
        src: pathdist + '/js/app.js',
        dest: pathdist + '/js/app.min.js'
      }
    },
alexlamsl commented 5 years ago

See https://github.com/mishoo/UglifyJS2/issues/3394#issuecomment-488668042