Starter template for unplugin.
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')()],
},
};
MIT License © 2023-PRESENT YuTengjing