0.1.0-beta.0 • Published 9 months ago

@0x-jerry/unplugin-demoblock v0.1.0-beta.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Unplugin demoblock

Easier to import a DemoBlock, see an example.

Install

npm i @0x-jerry/unplugin-demoblock

Usage

Vite

// vite.config.ts
import DemoBlock from '@0x-jerry/unplugin-demoblock/vite'

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

Example: playground/

Webpack

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('@0x-jerry/unplugin-demoblock/webpack')({
      /* options */
    }),
  ],
}