Closed francoisromain closed 7 years ago
Did you ever get this working? Also curious myself
Solved this (for console at least) in Webpack 2 by just using the UglifyJsPlugin
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
drop_console: true
},
comments: false
})
@camsjams yep, same here.
Hello what's the config to work with webpack 2?
I tried this (without success):
{ test: /\.js$/, use: [{ loader: 'babel-loader' }, { loader: 'strip-loader', options: { 'strip[]': 'console.log' } }] }