Advertisement
Guest User

Untitled

a guest
Mar 5th, 2025
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1.  
  2. First I try
  3. https://tailwindcss.com/docs/installation/tailwind-cli
  4.  
  5.  
  6.  
  7.  
  8. Then
  9.  
  10.  
  11.  
  12. npm init -y
  13.  
  14.  
  15.  
  16.  
  17.  
  18. npm install tailwindcss @tailwindcss/cli
  19.  
  20.  
  21.  
  22.  
  23. Next in
  24. package.json I modify the file to look like this
  25.  
  26.  
  27. ```
  28.  
  29. {
  30.  
  31. "name":
  32. "book_app",
  33.  
  34. "version":
  35. "1.0.0",
  36.  
  37.  
  38. "description":
  39. "1. Clone the project",
  40.  
  41. "main":
  42. "index.js",
  43.  
  44. "scripts":
  45. {
  46.  
  47.  
  48. "build-css":
  49. "npx @tailwindcss/cli -i
  50. C:/Users/user/OneDrive/Desktop/bookcodesktop/bookcode/book_app/app/static/css/src/input.css
  51. -o
  52. C:/Users/user/OneDrive/Desktop/bookcodesktop/bookcode/book_app/app/static/css/src/output.css
  53. --watch"
  54.  
  55.  
  56.  
  57.  
  58. },
  59.  
  60. "keywords":
  61. [],
  62.  
  63. "author":
  64. "",
  65.  
  66. "license":
  67. "ISC",
  68.  
  69.  
  70. "dependencies":
  71. {
  72.  
  73.  
  74. "@tailwindcss/cli":
  75. "^4.0.10",
  76.  
  77.  
  78. "tailwindcss":
  79. "^4.0.10"
  80.  
  81. }
  82.  
  83. }
  84.  
  85. ```
  86.  
  87.  
  88.  
  89. npm run build-css
  90. AFter everything is finsished in output.css I get a lot of errors like
  91. https://imgur.com/a/tApVetg
  92.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement