chore: config webpack caching for dev build

This commit is contained in:
lin onetwo 2021-10-01 02:14:18 +08:00
parent 9a43e0e81d
commit 84321727d8
2 changed files with 12 additions and 0 deletions

View file

@ -16,4 +16,10 @@ module.exports = {
fallback: { crypto: false },
},
output: { chunkFilename: 'main_window/[name].chunk.js', publicPath: '../' },
cache: {
type: 'filesystem',
buildDependencies: {
config: [__filename],
},
},
};