Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install tailwindcss nodejs

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

tailwindcss install

npm install tailwindcss --save-dev
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install pygame windows 10 
Shell :: ffmpeg add two videos together 
Shell :: push heroku 
Shell :: git stash pop index 
Shell :: how to determine the file type in ubuntu 
Shell :: powershell make file 
Shell :: install node js redhat 8 
Shell :: linux search for a given string in all files recursively 
Shell :: How to remove a snap package on Ubuntu 
Shell :: how to exit vim 
Shell :: bash add new line to crontab 
Shell :: install oh my zsh ubuntu 
Shell :: how to install fairseq 
Shell :: debian apt log 
Shell :: Terminal commands to push a file to Github 
Shell :: how to copy the content of the file to clipboard in bash 
Shell :: yum install node version 12 
Shell :: how to change permissions on a file in linux 
Shell :: command to check the free disk space 
Shell :: One command to create a directory and file inside it linux command 
Shell :: bash check if python package is installed 
Shell :: sum decimals bash 
Shell :: kubectl exec ls -lah 
Shell :: get vscode extensions with powershell script 
Shell :: how to update discord on ubuntu 
Shell :: pip install pygame 
Shell :: install strapi 
Shell :: git code push 
Shell :: install apache benchmark 
Shell :: install 7z commadn line windows 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =