Skip to content

Commit 82ca7d0

Browse files
alan-agius4josephperrott
authored andcommitted
fix(@angular-devkit/build-angular): show warning when using stylus
Stylus is not actively maintained and only 0.3% of the Angular CLI users use it.
1 parent 0272fc5 commit 82ca7d0

File tree

1 file changed

+7
-0
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+7
-0
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/styles.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ export function getStylesConfig(wco: WebpackConfigOptions): webpack.Configuratio
9898
extraPlugins.push(new RemoveHashPlugin({ chunkNames: noInjectNames, hashFormat }));
9999
}
100100

101+
if (globalStylePaths.some(p => p.endsWith('.styl'))) {
102+
wco.logger.warn(
103+
'Stylus usage is deprecated and will be removed in a future major version. ' +
104+
'To opt-out of the deprecated behaviour, please migrate to another stylesheet language.',
105+
);
106+
}
107+
101108
let sassImplementation: {} | undefined;
102109
try {
103110
// tslint:disable-next-line:no-implicit-dependencies

0 commit comments

Comments
 (0)