Skip to content

Commit 76cc2ce

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 76cc2ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/angular/build/package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)