Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
perf(cli): 开启 babel-loader 缓存,优化编译速度 (#1789)
Browse files Browse the repository at this point in the history
Co-authored-by: watsonhaw <[email protected]>
  • Loading branch information
watsonhaw5566 and watsonhaw committed Dec 17, 2021
1 parent b42bb25 commit 2f41917
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/remax-cli/src/build/webpack/config.mini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export default function webpackConfig(builder: Builder): webpack.Configuration {
.options({
usePlugins: [TurboRender.preprocess(options)],
reactPreset: false,
cacheDirectory: true,
});
}

Expand Down Expand Up @@ -154,6 +155,7 @@ export default function webpackConfig(builder: Builder): webpack.Configuration {
],
reactPreset: true,
api: builder.api,
cacheDirectory: true,
compact: process.env.NODE_ENV === 'production',
})
.end()
Expand Down

0 comments on commit 2f41917

Please sign in to comment.