serve assets from memory, use caching

This commit is contained in:
Rich Harris
2017-12-15 17:20:24 -05:00
parent 892b18cf80
commit 80ae909b73
4 changed files with 90 additions and 66 deletions

View File

@@ -16,7 +16,7 @@ module.exports = {
return {
path: `${dest}/client`,
filename: '[name].[hash].js',
chunkFilename: '[name].[id].js',
chunkFilename: '[name].[id].[hash].js',
publicPath: '/client/'
};
}
@@ -35,7 +35,7 @@ module.exports = {
return {
path: `${dest}/server`,
filename: '[name].[hash].js',
chunkFilename: '[name].[id].js',
chunkFilename: '[name].[id].[hash].js',
libraryTarget: 'commonjs2'
};
}