Reduce webpack production build time.
This commit is contained in:
parent
a1175a31a9
commit
94692401aa
@ -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({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user