madskristensen / WebPackTaskRunner

A Visual Studio extension
Other
39 stars 16 forks source link

Build Prod Breaks is you have UglifyJs in config #36

Closed isaacrlevin closed 7 years ago

isaacrlevin commented 7 years ago

Installed product versions

Description

If you have an UglifyJs configuration in your build prod config, running Build Prod will get an "Cannot read property 'sections' of null" error

Steps to recreate

Create basic Prod Build config with UglifyJs configuration, here is what I have that errors

` new UglifyJsPlugin({

    beautify: false, //prod

    mangle: { screw_ie8 : true, keep_fnames: true, except: ['$super'] }, //prod

    compress: { screw_ie8: true }, //prod

    comments: false //prod

  }),`

Current behavior

Causes error on task run, error is above

Expected behavior

No Errors on task run

isaacrlevin commented 7 years ago

fixed with #40