@kylegl/vueform
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

vueform

NPM version

Starter template for unplugin.

Template Usage

To use this template, clone it down using:

npx degit antfu/vueform my-unplugin

And do a global replace of vueform 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 vueform
Vite
// vite.config.ts
import Starter from "vueform/vite";

export default defineConfig({
  plugins: [
    Starter({
      /* options */
    }),
  ],
});

Example: playground/


Rollup
// rollup.config.js
import Starter from "vueform/rollup";

export default {
  plugins: [
    Starter({
      /* options */
    }),
  ],
};


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require("vueform/webpack")({
      /* options */
    }),
  ],
};


Nuxt
// nuxt.config.js
export default {
  buildModules: [
    [
      "vueform/nuxt",
      {
        /* options */
      },
    ],
  ],
};

This module works for both Nuxt 2 and Nuxt Vite


Vue CLI
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require("vueform/webpack")({
        /* options */
      }),
    ],
  },
};


esbuild
// esbuild.config.js
import { build } from "esbuild";
import Starter from "vueform/esbuild";

build({
  plugins: [Starter()],
});


Readme

Keywords

none

Package Sidebar

Install

npm i @kylegl/vueform

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

21.7 kB

Total Files

6

Last publish

Collaborators

  • kylegl