You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(@angular-devkit/build-angular): disable CSS optimization parallelism for components styles
Since we rely on child compilations to compile components CSS, using the `parallel` option will cause a significant overhead because each compilation will need to spawn a worker, in this mode the worker limit is not be honored because `css-minimizer-webpack-plugin` spawn and calulators workers during the optimization phase of a compilation and not globally per instance hence causes OOM because a large number of workers to be spawned simultaneously.
Closes#20883
(cherry picked from commit 1ab2ef9)
// component styles retain their original file name
321
-
test: /\.(?:css|scss|sass|less|styl)$/,
322
-
parallel: maxWorkers,
323
-
minify: [CssMinimizerPlugin.cssnanoMinify],
324
-
minimizerOptions: {
325
-
preset: [
326
-
'default',
327
-
{
328
-
// Disable SVG optimizations, as this can cause optimizations which are not compatible in all browsers.
329
-
svgo: false,
330
-
// Disable `calc` optimizations, due to several issues. #16910, #16875, #17890
331
-
calc: false,
332
-
// Disable CSS rules sorted due to several issues #20693, https://github.com/ionic-team/ionic-framework/issues/23266 and https://github.com/cssnano/cssnano/issues/1054
// Disable SVG optimizations, as this can cause optimizations which are not compatible in all browsers.
414
+
svgo: false,
415
+
// Disable `calc` optimizations, due to several issues. #16910, #16875, #17890
416
+
calc: false,
417
+
// Disable CSS rules sorted due to several issues #20693, https://github.com/ionic-team/ionic-framework/issues/23266 and https://github.com/cssnano/cssnano/issues/1054
0 commit comments