groundwork for asset caching

This commit is contained in:
Danny Coates 2017-08-15 11:55:52 -07:00
parent b429841534
commit 0ab8ddc894
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
11 changed files with 78 additions and 24 deletions

View file

@ -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()]
};