0.1.0 • Published 8 months ago

unplugin-uni-build v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

unplugin-uni-build

NPM version

Install

npm i unplugin-uni-build
// vite.config.ts
import Starter from 'unplugin-uni-build/vite'

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

Example: playground/

// rollup.config.js
import Starter from 'unplugin-uni-build/rollup'

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

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-uni-build/webpack')({ /* options */ })
  ]
}

// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-uni-build/webpack')({ /* options */ }),
    ],
  },
}

// esbuild.config.js
import { build } from 'esbuild'
import Starter from 'unplugin-uni-build/esbuild'

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