Skip to content

Commit 9b71f55

Browse files
committed
refactor: remove removeSpecialComments from webpack based builder app-shell builder
This option is not available in webpack based builders.
1 parent e0b274b commit 9b71f55

File tree

1 file changed

+2
-0
lines changed
  • packages/angular_devkit/build_angular/src/builders/app-shell

1 file changed

+2
-0
lines changed

packages/angular_devkit/build_angular/src/builders/app-shell/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ async function _appShellBuilder(
170170

171171
const optimization = normalizeOptimization(browserOptions.optimization);
172172
optimization.styles.inlineCritical = false;
173+
// Webpack based builders do not have the `removeSpecialComments` option.
174+
delete optimization.styles.removeSpecialComments;
173175

174176
const browserTargetRun = await context.scheduleTarget(browserTarget, {
175177
watch: false,

0 commit comments

Comments
 (0)