npm.io
0.0.1 • Published 3 years ago

hometown-vite-config

Licence
MIT
Version
0.0.1
Deps
0
Size
22 kB
Vulns
0
Weekly
0
Stars
1

hometown-vite-config

HoMeTownJS's vite config presets. Out of the box.

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