Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tjx666/unplugin-starter

unplugin boilerplate for personal use
https://github.com/tjx666/unplugin-starter

boilerplate esbuild esbuild-plugins plugin rollup rollup-plugin starter template vite vite-plugin webpack webpack-plugin

Last synced: 9 days ago
JSON representation

unplugin boilerplate for personal use

Awesome Lists containing this project

README

        

# unplugin-starter

[![npm](https://img.shields.io/npm/v/unplugin.svg)](https://npmjs.com/package/unplugin) [![downloads](https://img.shields.io/npm/dw/unplugin)](https://npmjs.com/package/unplugin) [![Unit Test](https://github.com/tjx666/unplugin-starter/actions/workflows/unit-test.yml/badge.svg)](https://github.com/tjx666/unplugin-starter/actions/workflows/unit-test.yml)

Starter template for [unplugin](https://github.com/unjs/unplugin).

## Installation

```bash
npm i -D unplugin-starter
```

Vite

```ts
// vite.config.ts
import UnpluginStarter from 'unplugin-starter/vite';

export default defineConfig({
plugins: [UnpluginStarter()],
});
```


Rollup

```ts
// rollup.config.js
import UnpluginStarter from 'unplugin-starter/rollup';

export default {
plugins: [UnpluginStarter()],
};
```


esbuild

```ts
// esbuild.config.js
import { build } from 'esbuild';

build({
plugins: [require('unplugin-starter/esbuild')()],
});
```


Webpack

```ts
// webpack.config.js
module.exports = {
/* ... */
plugins: [require('unplugin-starter/webpack')()],
};
```


Vue CLI

```ts
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [require('unplugin-starter/webpack')()],
},
};
```


## License

[MIT](./LICENSE) License © 2023-PRESENT [YuTengjing](https://github.com/tjx666)