1.0.0 • Published 5 years ago
cra-template-snowpack-tailwind v1.0.0
Snowpack & Tailwind CSS template
create-react-app template for snowpack & tailwindcss
- serviceWorker for
PWA,react routerandeslint & prettierfor style/linting
Usage
npx create-react-app --template snowpack-tailwindOr
yarn create react-app --template snowpack-tailwindScripts
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 thebuildfolder.yarn tailwind-build- Builds and minifies thesrc/tailwind.cssfile topublic/index.min.css.yarn minify- Minifies thepublic/index.cssfile topublic/index.min.css.yarn format- Formats your code using prettier.
Configuration
Eslint - edit
.eslintrc.jsonto change linting rules.Prettier - edit
.prettierrcto change code style.Tailwind CSS - edit
tailwind.config.jsandpostcss.config.jsto change plugin & build settings.Snowpack - edit
snowpack.config.jsto change plugin & mount settings.
Licnese
MIT
1.0.0
5 years ago