groundwork for asset caching
This commit is contained in:
parent
b429841534
commit
0ab8ddc894
11 changed files with 78 additions and 24 deletions
|
@ -1,4 +1,5 @@
|
|||
const path = require('path');
|
||||
const ManifestPlugin = require('webpack-manifest-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
|
@ -6,8 +7,8 @@ module.exports = {
|
|||
download: ['./frontend/src/download.js']
|
||||
},
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
path: path.resolve(__dirname, 'public'),
|
||||
filename: '[name].[chunkhash].js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
publicPath: '/'
|
||||
},
|
||||
module: {
|
||||
|
@ -25,5 +26,6 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
plugins: [new ManifestPlugin()]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue