Upgrade to Webpack 4

This commit is contained in:
Tim van der Meij 2018-05-20 15:18:43 +02:00
parent e3f635ce01
commit a816ee5c25
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
6 changed files with 23 additions and 22 deletions

View file

@ -7,17 +7,10 @@ module.exports = {
'main': './main.js',
'pdf.worker': 'pdfjs-dist/build/pdf.worker.entry'
},
mode: 'none',
output: {
path: path.join(__dirname, '../../build/webpack'),
publicPath: '../../build/webpack/',
filename: '[name].bundle.js'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compressor: {
screw_ie8: true,
warnings: false
}
})
]
}
};