https://github.com/zhangyuang/vite-prebundle-error
https://github.com/zhangyuang/vite-prebundle-error
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zhangyuang/vite-prebundle-error
- Owner: zhangyuang
- Created: 2021-04-14T03:23:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-14T03:23:48.000Z (about 4 years ago)
- Last Synced: 2024-10-25T09:22:25.811Z (8 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite + React + Tailwind CSS starter
Inspired by [posva's](https://github.com/posva) [vite-tailwind-starter](https://github.com/posva/vite-tailwind-starter)
Note if you have access to [Tailwind UI](https://tailwindui.com), you can follow the following steps to add it:
1. Install `@tailwindcss/ui`:
```sh
yarn add @tailwindcss/ui
```2. Add the plugin in `tailwind.config.js` without changing anything else:
```js
// tailwind.config.js
module.exports = {
// ...
// rest of the config
plugins: [require('@tailwindcss/ui')],
}
```## Installation
```sh
yarn
```## Development
```sh
yarn dev
```## Build
```sh
yarn build
```### TypeScript Support
Head over to the [vite react-ts](https://github.com/vitejs/create-vite-app/tree/master/template-react-ts) template and just copy the needed files.