0.1.1-beta.10 • Published 3 months ago
unplugin-locator v0.1.1-beta.10
unplugin-locator
Starter template for unplugin.
Template Usage
To use this template, clone it down using:
npx degit unplugin/unplugin-locator my-unplugin
And do a global replacement of unplugin-locator
with your plugin name.
Then you can start developing your unplugin 🔥
To test your plugin, run: pnpm run dev
To release a new version, run: pnpm run release
Install
npm i unplugin-locator
// vite.config.ts
import Starter from 'unplugin-locator/vite'
export default defineConfig({
plugins: [
Starter({ /* options */ }),
],
})
Example: playground/
// rollup.config.js
import Starter from 'unplugin-locator/rollup'
export default {
plugins: [
Starter({ /* options */ }),
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-locator/webpack')({ /* options */ })
]
}
// nuxt.config.js
export default defineNuxtConfig({
modules: [
['unplugin-locator/nuxt', { /* options */ }],
],
})
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-locator/webpack')({ /* options */ }),
],
},
}
// esbuild.config.js
import { build } from 'esbuild'
import Starter from 'unplugin-locator/esbuild'
build({
plugins: [Starter()],
})
0.1.1-beta.10
3 months ago
0.1.1-beta.9
3 months ago
0.1.1-beta.8
3 months ago
0.1.1-beta.7
3 months ago
0.1.1-beta.6
4 months ago
0.1.1-beta.5
4 months ago
0.1.1-beta.3
4 months ago
0.1.1-beta.2
4 months ago
0.1.1-beta.1
4 months ago