vite-plugin-cdn-mode
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

Install

$ npm install vite-plugin-cdn-mode -D

# or

$ yarn add vite-plugin-cdn-mode -D

# or

$ pnpm add vite-plugin-cdn-mode -D

Usage

import { defineConfig } from 'vite'
import cdnPlugin from 'vite-plugin-cdn-mode'

export default defineConfig({
  plugins: [
    // ...
    cdnPlugin({
      modules: [
        {
          name: 'package name',
          var: 'used variable name',
          mode: 'script-mode',
          path: 'script-src',
          css: 'link-href',
        },
      ],
    }),
  ],
})

Package Sidebar

Install

npm i vite-plugin-cdn-mode

Weekly Downloads

1

Version

1.0.12

License

MIT

Unpacked Size

4.14 kB

Total Files

7

Last publish

Collaborators

  • vegazhang