Skip to content

Commit

Permalink
perf(v2): use webpack future version of asset emitting logic to free …
Browse files Browse the repository at this point in the history
…memory faster (#2046)
  • Loading branch information
endiliey authored and yangshun committed Nov 25, 2019
1 parent be39616 commit 2607e86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docusaurus/src/webpack/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export function createBaseConfig(
return {
mode: isProd ? 'production' : 'development',
output: {
// Use future version of asset emitting logic, which allows freeing memory of assets after emitting.
futureEmitAssets: true,
pathinfo: false,
path: outDir,
filename: isProd ? '[name].[contenthash:8].js' : '[name].js',
Expand Down

0 comments on commit 2607e86

Please sign in to comment.