Skip to content

Commit

Permalink
Improve webpack memory footprint (#56885)
Browse files Browse the repository at this point in the history
* chore(NA): introduce futureEmitAssets option. chore(NA): bump related webpack dependencies.

* chore(NA): remove minimizer compress on dll compiler.

* chore(NA): re enable dead code removal.

* chore(NA): remove not needed file

* docs(NA): add todo on dll compiler to remove this on webpack 5
  • Loading branch information
mistic committed Feb 6, 2020
1 parent 93e627f commit 6a6931a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/optimize/base_optimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export default class BaseOptimizer {
profile: this.profile || false,

output: {
futureEmitAssets: true, // TODO: remove on webpack 5
path: this.uiBundles.getWorkingDir(),
filename: '[name].bundle.js',
sourceMapFilename: '[file].map',
Expand Down
1 change: 1 addition & 0 deletions src/optimize/dynamic_dll_plugin/dll_config_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function generateDLL(config) {
entry: dllEntry,
context: dllContext,
output: {
futureEmitAssets: true, // TODO: remove on webpack 5
filename: dllBundleFilename,
path: dllOutputPath,
publicPath: dllPublicPath,
Expand Down
17 changes: 12 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16342,12 +16342,12 @@ icss-replace-symbols@^1.1.0:
resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded"
integrity sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=

icss-utils@^4.0.0, icss-utils@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-4.1.1.tgz#21170b53789ee27447c2f47dd683081403f9a467"
integrity sha512-4aFq7wvWyMHKgxsH8QQtGpvbASCf+eM3wPRLI6R+MgAnTCZ6STYsRvttLvRWK0Nfif5piF394St3HeJDaljGPA==
icss-utils@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-4.0.0.tgz#d52cf4bcdcfa1c45c2dbefb4ffdf6b00ef608098"
integrity sha512-bA/xGiwWM17qjllIs9X/y0EjsB7e0AV08F3OL8UPsoNkNRibIuu8f1eKTnQ8QO1DteKKTxTUAn+IEWUToIwGOA==
dependencies:
postcss "^7.0.14"
postcss "^7.0.5"

icss-utils@^4.1.0:
version "4.1.0"
Expand All @@ -16356,6 +16356,13 @@ icss-utils@^4.1.0:
dependencies:
postcss "^7.0.14"

icss-utils@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-4.1.1.tgz#21170b53789ee27447c2f47dd683081403f9a467"
integrity sha512-4aFq7wvWyMHKgxsH8QQtGpvbASCf+eM3wPRLI6R+MgAnTCZ6STYsRvttLvRWK0Nfif5piF394St3HeJDaljGPA==
dependencies:
postcss "^7.0.14"

idx@^2.5.6:
version "2.5.6"
resolved "https://registry.yarnpkg.com/idx/-/idx-2.5.6.tgz#1f824595070100ae9ad585c86db08dc74f83a59d"
Expand Down

0 comments on commit 6a6931a

Please sign in to comment.