Reduce webpack production build time.

This commit is contained in:
Igor Kulikov 2019-07-23 18:31:52 +03:00
parent a1175a31a9
commit 94692401aa

View File

@ -36,7 +36,6 @@ dirTree('./src/app/locale/', {extensions:/\.json$/}, (item) => {
module.exports = { module.exports = {
mode: 'production', mode: 'production',
devtool: 'source-map',
entry: [ entry: [
'./src/app/app.js', './src/app/app.js',
'webpack-material-design-icons' 'webpack-material-design-icons'
@ -45,6 +44,7 @@ module.exports = {
path: path.resolve(__dirname, 'target/generated-resources/public/static'), path: path.resolve(__dirname, 'target/generated-resources/public/static'),
publicPath: PUBLIC_RESOURCE_PATH, publicPath: PUBLIC_RESOURCE_PATH,
filename: 'bundle.[hash].js', filename: 'bundle.[hash].js',
pathinfo: false
}, },
plugins: [ plugins: [
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({