1.1.0 • Published 12 months ago
vite-plugin-cdn2 v1.1.0
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
params | type | default | description |
---|---|---|---|
include | FilterPattern | /\.(mjs\|js\|ts\|vue\|jsx\|tsx)(\?.*\|)$/ | Include all assets matching any of these conditions. |
exlcude | FilterPattern ß | - | Exclude all assets matching any of these conditions. |
modules | Array<IModule \| string> | [] | Should convert module. |
logLevel | slient\|warn | warn | Adjust console output verbosity. |
resolve | ResolveOptions | jsdelivr plugin | URL parser injected into the page. |
apply | string | build | Same as vite apply. |
Acknowledgements
Thanks to JetBrains for allocating free open-source licences for IDEs such as WebStorm.
Document
LICENSE
Author
Kanno
1.1.0
12 months ago
1.0.0
12 months ago
0.16.0
1 year ago
0.15.4
1 year ago
0.15.3
1 year ago
0.14.0
1 year ago
0.15.0
1 year ago
0.14.1
1 year ago
0.15.1
1 year ago
0.15.2
1 year 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
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.5.1
2 years ago
0.4.2
2 years 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