1.1.0 • Published 11 months ago

vite-plugin-cdn2 v1.1.0

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

Install

$ yarn add vite-plugin-cdn2 -D

# or

$ npm install vite-plugin-cdn2 -D

Usage

// vite.config.ts

import { defineConfig } from "vite";

import { cdn } from "vite-plugin-cdn2";

export default defineConfig({
  plugins: [
    //  ... your plugin
    cdn({ modules: ["vue"] }),
  ],
});

Options

paramstypedefaultdescription
includeFilterPattern/\.(mjs\|js\|ts\|vue\|jsx\|tsx)(\?.*\|)$/Include all assets matching any of these conditions.
exlcudeFilterPattern ß-Exclude all assets matching any of these conditions.
modulesArray<IModule \| string>[]Should convert module.
logLevelslient\|warnwarnAdjust console output verbosity.
resolveResolveOptionsjsdelivr pluginURL parser injected into the page.
applystringbuildSame as vite apply.

Acknowledgements

Thanks to JetBrains for allocating free open-source licences for IDEs such as WebStorm.

Document

LICENSE

MIT

Author

Kanno

1.1.0

11 months ago

1.0.0

11 months ago

0.16.0

11 months ago

0.15.4

11 months ago

0.15.3

11 months ago

0.14.0

12 months ago

0.15.0

12 months ago

0.14.1

12 months ago

0.15.1

12 months ago

0.15.2

12 months ago

0.9.3

1 year ago

0.11.0

1 year ago

0.12.0

1 year ago

0.11.1

1 year ago

0.13.0

1 year ago

0.12.1

1 year ago

0.11.2

1 year ago

0.12.2

1 year ago

0.11.3

1 year ago

0.12.3

1 year ago

0.12.4

1 year ago

0.10.0

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago

0.9.2

1 year ago

0.9.1

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.5.1

1 year ago

0.4.2

1 year ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.3.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago