Skip to content

Commit b3c1991

Browse files
committed
fix(@angular-devkit/build-angular): add missing tailwind @screen directive in matcher
`@screen` is not documented in tailwind documentation as it is not a recommanded option, however it still works and they don't have plans to remove it. tailwindlabs/tailwindcss#7516 Closes #26709
1 parent 7f2d162 commit b3c1991

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/angular_devkit/build_angular/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,15 @@ export interface StylesheetPluginOptions {
5454
*
5555
* Based on https://tailwindcss.com/docs/functions-and-directives
5656
*/
57-
const TAILWIND_KEYWORDS = ['@tailwind', '@layer', '@apply', '@config', 'theme(', 'screen('];
57+
const TAILWIND_KEYWORDS = [
58+
'@tailwind',
59+
'@layer',
60+
'@apply',
61+
'@config',
62+
'theme(',
63+
'screen(',
64+
'@screen', // Undocumented in version 3, see: https://github.com/tailwindlabs/tailwindcss/discussions/7516.
65+
];
5866

5967
export interface StylesheetLanguage {
6068
name: string;

0 commit comments

Comments
 (0)