ben-ng/minifyify

Drop Debugger Pass Thru Not Functioning

cdaringe opened this issue · 2 comments

It doesn't appear that drop_debugger is working successfully. Any tips?

plugin: [
    [function(b) {
        b.plugin('minifyify', {
            map: '/coins_core/build/js/browser/amp.bundle.map.json',
            output: './build/js/browser/amp.bundle.map.json',
            uglify: {
                drop_debugger: false
            }
        });
    }]
],

You need to pass that within the compress object.

map: '',
output: '',
uglify: {
    compress: {
        drop_debugger: true
    }
}

Check the Uglify documentation under The simple way for more examples.

dang it, of course. THanks @NicolasZanotti!