Drop Debugger Pass Thru Not Functioning
cdaringe opened this issue · 2 comments
cdaringe commented
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
}
});
}]
],
NicolasZanotti commented
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.
cdaringe commented
dang it, of course. THanks @NicolasZanotti!