0.1.14 • Published 1 year ago

unplugin-chii v0.1.14

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

unplugin-chii

NPM version CI codecov

Install

npm i unplugin-chii

Option

nametypedescription
enableboolean
portnumber
hoststring
domainstring
cdnstring
httpsstring
sslCertstring
sslKeystring
basePathstring
// vite.config.ts
import Starter from 'unplugin-chii/vite'

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

Example: vite-playground/

You need to set WEBPACK_SERVE environment variable to non-falsy

// webpack.config.js
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
  /* ... */
  plugins: [
    new HtmlWebpackPlugin({
      template: 'index.html',
    }),
    require('unplugin-chii/webpack')({
      /* options */
    }),
  ],
}

Example: webpack-playground/

// nuxt.config.js
export default {
  buildModules: [
    [
      'unplugin-chii/nuxt',
      {
        /* options */
      },
    ],
  ],
}

This module works for both Nuxt 2 and Nuxt Vite

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

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago