# hometown-vite-config

> HoMeTownJS's vite config presets.

Latest version **0.0.1** (published 2023-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install hometown-vite-config
pnpm add hometown-vite-config
yarn add hometown-vite-config
bun add hometown-vite-config
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-03-16 |
| First published | 2023-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | HoMeTownJS |
| Maintainers | hometownsocool |

## Links

- npm: https://www.npmjs.com/package/hometown-vite-config
- Repository: https://github.com/HoMeTownJS/hometown-vite-config
- Issues: https://github.com/HoMeTownJS/hometown-vite-config/issues
- npm.io page: https://npm.io/package/hometown-vite-config

## Recent versions

- 0.0.1 (latest) — 2023-03-16

## README

<p align="center">
  <img width="220px" src="https://github.com/HoMeTownJS/site/blob/main/public/images/logo-vertical.png?raw=true" />
</p>
<p align="center"><b>✨ hometown-vite-config 💥</b></p>
<p align="center">HoMeTownJS's vite config presets. Out of the box. 📦</p>

### Packages📦

- 🌵 [@hometownjs/vite-config-vue](https://github.com/HoMeTownJS/hometown-vite-config/tree/main/packages/vue)

### 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.

```bash
pnpm install vite
```

Then just choose which package.

```bash
pnpm install @hometownjs/vite-config-vue #vue
```

#### Config

Create `vite.config.ts` in the root directory and enter the following

```ts
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`:

```json
{
  "dev": "vite --mode=development",
  "build": "vite build --mode=production",
}
```

do it:

```bash
# 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](https://github.com/HoMeTownJS/hometown-vite-config/tree/main/packages/vue) view detail.

## Author

[HoMeTown](https://juejin.cn/user/4116184668057390) 🙊

---
_Source: https://npm.io/package/hometown-vite-config · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
