Skip to content

Commit 998f7c0

Browse files
committed
upgrade to tailwindcss v4
1 parent 6b1b9fd commit 998f7c0

File tree

3 files changed

+238
-190
lines changed

3 files changed

+238
-190
lines changed

MyApp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"dtos": "x mjs",
44
"dev": "dotnet watch",
55
"serve": "npx http-server ./dist",
6-
"ui:dev": "npx tailwindcss@v3 -i ./tailwind.input.css -o ./wwwroot/css/app.css --watch",
7-
"ui:build": "npx tailwindcss@v3 -i ./tailwind.input.css -o ./wwwroot/css/app.css --minify",
6+
"ui:dev": "tailwindcss -i ./tailwind.input.css -o ./wwwroot/css/app.css --watch",
7+
"ui:build": "tailwindcss -i ./tailwind.input.css -o ./wwwroot/css/app.css --minify",
88
"build": "npm run ui:build",
99
"prerender": "npm run build && dotnet run --AppTasks=prerender --environment Production"
1010
}

MyApp/tailwind.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
module.exports = {
2-
content: ["./**/*.{html,js,mjs,md,cshtml,razor,cs}","./Pages/**/*.{cshtml,razor}"],
3-
darkMode: 'class',
4-
plugins: [],
5-
}
1+
export default {
2+
}

0 commit comments

Comments
 (0)