Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tjx666/unplugin-starter
- Owner: tjx666
- License: mit
- Created: 2023-05-27T17:41:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-03T07:29:59.000Z (over 1 year ago)
- Last Synced: 2024-12-09T03:33:14.982Z (13 days ago)
- Topics: boilerplate, esbuild, esbuild-plugins, plugin, rollup, rollup-plugin, starter, template, vite, vite-plugin, webpack, webpack-plugin
- Language: TypeScript
- Homepage:
- Size: 63.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)