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
  • Loading branch information
endiliey committed Nov 25, 2019
1 parent 421f862 commit b1635c6
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 b1635c6

Please sign in to comment.