vite-plugin-asset-transform-cdn
v1.0.1
Published
> vite 插件,支持构建时将资源替换成 cdn 地址
Downloads
5
Readme
vite-plugin-asset-transform-cdn
vite 插件,支持构建时将资源替换成 cdn 地址
Install
npm i --save-dev vite-plugin-asset-transform-cdn # yarn/pnpm add -D vite-plugin-asset-transform-cdn
Usage
// vite.config.js
import vitePluginAssetTransformCDN from "vite-plugin-asset-transform-cdn"
export default {
plugins: [vitePluginAssetTransformCDN({
// name?: ((match: string) => string) | string;
// includes?: RegExp | RegExp[];
// publicUrl?: string;
})],
}