- git clone with
https://github.com/PixelDevSolution/Taiwilnd-Starer-for-HTML.git
cd ./Tailwind-starter-for-HTM
npm install
oryarn
- run dev watch serer
npm run dev
- for use style css to minified versions due to production
npm run prod
-
"dev": "npx tailwindcss -i ./src/input.css -o ./public/css/style.css --watch",
-
dev is script name
-
-i ./src/input.css is the tailwind main input css. where tailwind
@tailwind base; @tailwind components; @tailwind utilities;
base loaded -
-o ./public/css/style.css is the output css location where your html applied classes complied by tailiwnd to store as vanilla css.
-
--watch / -w is the continuously looking change to html classes. every time saving html documents save it will be load automatically.
-
"prod": "npx tailwindcss -i ./src/input.css -o ./public/css/style.css --minify"
-
--minify is compiled to output css file to a minified version css