0.0.1 β’ Published 1 year ago
hometown-vite-config v0.0.1
Packagesπ¦
Feature π
- Probably the simplest vite config plug-in.
- It can let you focus on business or fast development.
- Out of the box.
Usage π€©
Install
First u need install the packages of vite.
pnpm install vite
Then just choose which package.
pnpm install @hometownjs/vite-config-vue #vue
Config
Create vite.config.ts
in the root directory and enter the following
import { createViteConfig } from '@hometownjs/vite-config-vue';
export default createViteConfig();
Congratulations on completing the configuration of vite.config.ts
π π π
Next, add the script in package.json
:
{
"dev": "vite --mode=development",
"build": "vite build --mode=production",
}
do it:
# start dev serve
pnpm dev
# build production package
pnpm build
About other config
Of course, do you want to ask whether you can customize the configuration or the benefits of using this library?
ok! lets go~
Please move to the library @hometownjs/vite-config-vue view detail.
Author
HoMeTown π
0.0.1
1 year ago