Skip to content

Commit 694ef8e

Browse files
committed
fix(@angular/build): allow tailwindcss 4.x as a peer dependency
To support usage of the newly released Tailwind CSS 4.0.0, the peer dependency range has been update to include `^4.0.0`. This prevents potential installation warnings/error when using various package managers. Use of Tailwind CSS 4+ requires either the `application` (new project default) or `browser-esbuild` builder. Both of which support custom postcss configuration via a `.postcssrc.json` file. For instructions on the setup of Tailwind CSS with Angular, please see the Tailwind CSS documentation here: https://tailwindcss.com/docs/installation/framework-guides/angular
1 parent 531dcdc commit 694ef8e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
.npmrc=-1406867100
55
modules/testing/builder/package.json=-1196120648
66
package.json=-2061208187
7-
packages/angular/build/package.json=-1096831997
7+
packages/angular/build/package.json=229129757
88
packages/angular/cli/package.json=-1878910022
99
packages/angular/pwa/package.json=1108903917
1010
packages/angular/ssr/package.json=1104313629
1111
packages/angular_devkit/architect/package.json=-1496633956
1212
packages/angular_devkit/architect_cli/package.json=1551210941
13-
packages/angular_devkit/build_angular/package.json=1992694251
13+
packages/angular_devkit/build_angular/package.json=1732310149
1414
packages/angular_devkit/build_webpack/package.json=373950017
1515
packages/angular_devkit/core/package.json=339935828
1616
packages/angular_devkit/schematics/package.json=673943597

packages/angular/build/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"less": "^4.2.0",
6262
"ng-packagr": "0.0.0-NG-PACKAGR-PEER-DEP",
6363
"postcss": "^8.4.0",
64-
"tailwindcss": "^2.0.0 || ^3.0.0",
64+
"tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
6565
"typescript": ">=5.5 <5.8"
6666
},
6767
"peerDependenciesMeta": {

packages/angular_devkit/build_angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"karma": "^6.3.0",
8282
"ng-packagr": "0.0.0-NG-PACKAGR-PEER-DEP",
8383
"protractor": "^7.0.0",
84-
"tailwindcss": "^2.0.0 || ^3.0.0",
84+
"tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
8585
"typescript": ">=5.5 <5.8"
8686
},
8787
"peerDependenciesMeta": {

0 commit comments

Comments
 (0)