Skip to content

Commit d53d25f

Browse files
committedJan 27, 2025·
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 (cherry picked from commit 694ef8e)
1 parent 2011d34 commit d53d25f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/angular/build/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"less": "^4.2.0",
5858
"ng-packagr": "^19.0.0",
5959
"postcss": "^8.4.0",
60-
"tailwindcss": "^2.0.0 || ^3.0.0",
60+
"tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
6161
"typescript": ">=5.5 <5.8"
6262
},
6363
"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": "^19.0.0",
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)
Please sign in to comment.