@russmedia/theme-builder-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

theme-builder-plugin

NPM version

Starter template for unplugin.

Template Usage

To use this template, clone it down using:

npx degit antfu/theme-builder-plugin my-unplugin

And do a global replace of theme-builder-plugin 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 @russmedia/theme-builder-plugin
Vite
// vite.config.ts
import Starter from 'theme-builder-plugin/vite'

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

Example: playground/


Rollup
// rollup.config.js
import Starter from 'theme-builder-plugin/rollup'

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


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('theme-builder-plugin/webpack')({ /* options */ })
  ]
}


Nuxt
// nuxt.config.js
export default {
  buildModules: [
    ['theme-builder-plugin/nuxt', { /* options */ }],
  ],
}

This module works for both Nuxt 2 and Nuxt Vite


Vue CLI
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('theme-builder-plugin/webpack')({ /* options */ }),
    ],
  },
}


Package Sidebar

Install

npm i @russmedia/theme-builder-plugin

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

11.7 kB

Total Files

29

Last publish

Collaborators

  • julianmar
  • russmediadigital
  • mwidmann