groundwork for asset caching

This commit is contained in:
Danny Coates
2017-08-15 11:55:52 -07:00
parent b429841534
commit 0ab8ddc894
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()]
};