vite-plugin-cdn2
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
Related Packages
vite-plugin-checker
Vite plugin that runs TypeScript type checker on a separate process.
133,975,562
1,242
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.0 | ^3.3.4 | MIT | |
| 1.0.0 | ^3.3.4 | MIT | |
| 0.16.0 | ^3.3.4 | MIT | |
| 0.15.4 | ^3.3.4 | MIT | |
| 0.15.3 | ^3.3.4 | MIT | |
| 0.15.2 | ^3.3.4 | MIT | |
| 0.15.1 | ^3.3.4 | MIT | |
| 0.15.0 | ^3.3.4 | MIT | |
| 0.14.1 | ^3.3.4 | MIT | |
| 0.14.0 | ^3.3.4 | MIT | |
| 0.13.0 | ^3.3.4 | MIT | |
| 0.12.4 | ^3.3.4 | MIT | |
| 0.12.3 | ^3.3.4 | MIT | |
| 0.12.2 | ^3.3.4 | MIT | |
| 0.12.1 | ^3.2.47 | MIT | |
| 0.12.0 | ^3.2.47 | MIT | |
| 0.11.3 | ^3.2.47 | MIT | |
| 0.11.2 | ^3.2.47 | MIT | |
| 0.11.1 | ^3.2.47 | MIT | |
| 0.11.0 | ^3.2.47 | MIT | |
| 0.10.0 | ^3.2.47 | MIT | |
| 0.9.3 | ^3.2.47 | MIT | |
| 0.9.2 | ^3.2.47 | MIT | |
| 0.9.1 | ^3.2.47 | MIT | |
| 0.9.0 | ^3.2.47 | MIT | |
| 0.8.0 | ^3.2.47 | MIT | |
| 0.7.0 | ^3.2.47 | MIT | |
| 0.6.0 | ^3.2.47 | MIT | |
| 0.5.1 | ^3.2.47 | MIT | |
| 0.5.0 | ^3.2.47 | MIT |
Showing the latest 30 of 42. See every release on npm