1.1.0 • Published 5 months ago

vite-plugin-cdn2 v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 months ago

1.0.0

5 months ago

0.16.0

5 months ago

0.15.4

5 months ago

0.15.3

5 months ago

0.14.0

6 months ago

0.15.0

6 months ago

0.14.1

6 months ago

0.15.1

6 months ago

0.15.2

6 months ago

0.9.3

9 months ago

0.11.0

9 months ago

0.12.0

9 months ago

0.11.1

9 months ago

0.13.0

8 months ago

0.12.1

8 months ago

0.11.2

9 months ago

0.12.2

8 months ago

0.11.3

9 months ago

0.12.3

8 months ago

0.12.4

8 months ago

0.10.0

9 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.9.2

10 months ago

0.9.1

10 months ago

0.7.0

10 months ago

0.6.0

10 months ago

0.5.0

12 months ago

0.4.1

1 year ago

0.4.0

1 year ago

0.5.1

12 months ago

0.4.2

1 year ago

0.3.0

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.3.2

1 year ago

0.3.1

1 year ago

0.2.2

2 years ago

0.3.3

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago