diff --git a/apps/miniprogram/config/dev.ts b/apps/miniprogram/config/dev.ts index 6eba86d..291bc4e 100644 --- a/apps/miniprogram/config/dev.ts +++ b/apps/miniprogram/config/dev.ts @@ -2,12 +2,22 @@ import type { UserConfigExport } from '@tarojs/cli'; export default { logger: { quiet: false }, + compiler: { + type: 'webpack5', + prebundle: { enable: false }, + }, mini: { miniCssExtractPluginOption: { ignoreOrder: true, }, webpackChain(chain) { chain.devtool(false); + chain.cache({ + type: 'filesystem', + buildDependencies: { + config: [__filename], + }, + }); }, }, h5: {},