Answers for "tailwind react css"

5

commmand for installing tailwind to react

npm install tailwindcss
Posted by: Guest on September-01-2020
0

how to properly install tailwind css in react

npx tailwind init tailwind.js --full
Posted by: Guest on December-24-2020
1

tailwind css in react

// craco.config.js
module.exports = {
  style: {
    postcss: {
      plugins: [
        require('tailwindcss'),
        require('autoprefixer'),
      ],
    },
  },
}
Posted by: Guest on August-19-2021
0

tailwind css in react

{
    // ...
    "scripts": {
-     "start": "react-scripts start",
-     "build": "react-scripts build",
-     "test": "react-scripts test",
+     "start": "craco start",
+     "build": "craco build",
+     "test": "craco test",
      "eject": "react-scripts eject"
    },
  }
Posted by: Guest on August-19-2021
0

how to properly install tailwind css in react

"scripts": {
  "start": "npm run watch:css && react-scripts start",
  "build": "npm run watch:css && react-scripts build",
  "test": "react-scripts test",
  "eject": "react-scripts eject",
  "watch:css": "postcss src/assets/tailwind.css -o src/assets/main.css"
}
Posted by: Guest on December-24-2020
0

how to properly install tailwind css in react

touch postcss.config.js
Posted by: Guest on December-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language