const { optimize } = require('webpack');
const { UglifyJsPlugin } = optimize;
new UglifyJsPlugin({
beautify: false,
comments: false,
mangle: {
screw_ie8: true,
keep_fnames: true
},
compress: {
screw_ie8: true,
sequences: true,
booleans: true,
loops: true,
unused: true,
warnings: false,
drop_console: true,
unsafe: true
}
})
Todo.update({
idUser: iduser,
iditem: {
$in: arraylist
}
}, { del: '+' }, { multi: true });