Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install tailwind expressjs

First add tailwind and postcss
npm install tailwindcss postcss autoprefixer postcss-cli

Initialize tailwindcss
npx tailwindcss init

Create a "postcss.config.js" and paste the following in it
module.exports = {
  plugins: [
    require('tailwindcss'),
    require('autoprefixer'),
  ]
}

Create the necessary files
mkdir public
mkdir public/styles
touch public/styles/tailwind.css
touch public/styles/style.css

Paste the following in public/styles/tailwind.css
@tailwind base;
@tailwind components;
@tailwind utilities;

The last thing is to add this to the scripts in package.json
"tailwind:css": "postcss public/styles/tailwind.css -o public/styles/style.css"
Comment

PREVIOUS NEXT
Code Example
Shell :: awk get last field 
Shell :: how to check tls version 
Shell :: git push to heroku 
Shell :: remove space at end of each line file 
Shell :: venv deactivate 
Shell :: setting missing in ubuntu 
Shell :: create csr ubuntu 
Shell :: Failed to start The Apache HTTP Server. 
Shell :: flutter doctor android studio not installed 
Shell :: github jabba 
Shell :: docker compose example 
Shell :: install oh my zsh linux 
Shell :: mac terminal hide username 
Shell :: how to ping in cmd 
Shell :: docker logs last few lines 
Shell :: force pull in git 
Shell :: install safari in ubunut 
Shell :: clear metro bundler cache 
Shell :: top git commands 
Shell :: git push existing repository 
Shell :: ng cli generate component 
Shell :: xamp start ubuntu 
Shell :: give permission to user in ubuntu 
Shell :: git increase buffer size 
Shell :: check if systemctl service is running linux 
Shell :: install pytorch lightning 
Shell :: uuntu free port from use 
Shell :: ubuntu install tar.xz 
Shell :: git add email 
Shell :: git how get a list of file names changed in a commit 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =