1.0.0 • Published 3 years ago
cra-template-snowpack-tailwind v1.0.0
Snowpack & Tailwind CSS template
create-react-app template for snowpack & tailwindcss
- serviceWorker for
PWA
,react router
andeslint & prettier
for style/linting
Usage
npx create-react-app --template snowpack-tailwind
Or
yarn create react-app --template snowpack-tailwind
Scripts
yarn start
- Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.yarn build
- Builds the app for production to thebuild
folder.yarn tailwind-build
- Builds and minifies thesrc/tailwind.css
file topublic/index.min.css
.yarn minify
- Minifies thepublic/index.css
file topublic/index.min.css
.yarn format
- Formats your code using prettier.
Configuration
Eslint - edit
.eslintrc.json
to change linting rules.Prettier - edit
.prettierrc
to change code style.Tailwind CSS - edit
tailwind.config.js
andpostcss.config.js
to change plugin & build settings.Snowpack - edit
snowpack.config.js
to change plugin & mount settings.
Licnese
MIT
1.0.0
3 years ago