Skip to content

tjx666/unplugin-starter

Repository files navigation

unplugin-starter

npm downloads Unit Test

Starter template for unplugin.

Installation

npm i -D unplugin-starter
Vite
// vite.config.ts
import UnpluginStarter from 'unplugin-starter/vite';

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


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

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


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

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


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


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


License

MIT License © 2023-PRESENT YuTengjing