Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): show warning when using stylus
Browse files Browse the repository at this point in the history
Stylus is not actively maintained and only 0.3% of the Angular CLI users use it.

(cherry picked from commit 82ca7d0)
  • Loading branch information
alan-agius4 authored and josephperrott committed Apr 21, 2021
1 parent fd729ac commit 7a8686a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ export function getStylesConfig(wco: WebpackConfigOptions): webpack.Configuratio
extraPlugins.push(new RemoveHashPlugin({ chunkNames: noInjectNames, hashFormat }));
}

if (globalStylePaths.some(p => p.endsWith('.styl'))) {
wco.logger.warn(
'Stylus usage is deprecated and will be removed in a future major version. ' +
'To opt-out of the deprecated behaviour, please migrate to another stylesheet language.',
);
}

let sassImplementation: {} | undefined;
try {
// tslint:disable-next-line:no-implicit-dependencies
Expand Down

0 comments on commit 7a8686a

Please sign in to comment.