workaround weird webpack(?) bug by not deleting old files

This commit is contained in:
Rich Harris
2018-02-18 12:49:37 -05:00
parent 25bdcf9957
commit 835b94175d
4 changed files with 9 additions and 15 deletions

View File

@@ -18,8 +18,8 @@ export default {
output: () => {
return {
path: `${dest}/client`,
filename: '[name].[hash].js',
chunkFilename: '[name].[id].[hash].js',
filename: '[hash]/[name].js',
chunkFilename: '[hash]/[name].[id].js',
publicPath: '/client/'
};
}
@@ -36,7 +36,7 @@ export default {
return {
path: `${dest}`,
filename: '[name].js',
chunkFilename: '[name].[id].[hash].js',
chunkFilename: '[hash]/[name].[id].js',
libraryTarget: 'commonjs2'
};
}