0.1.2 • Published 4 months ago

vite-plugin-import-cdn-fault-tolerant v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago
import { defineConfig } from "vite";

import VitePluginImportCdnFaultTolerant from "vite-plugin-import-cdn-fault-tolerant";

export default defineConfig({
  plugins: [
    VitePluginImportCdnFaultTolerant({
      modules: [
        {
          name: "vue",
          var: "Vue",
          pathList: [
            {
              path: `https://cdn.bootcdn.net/ajax/libs/vue/3.3.4/vue.global.prod.min.js`,
              alternatePath: "./libs/vue.global.prod.min.js",
            },
          ],
        },
        {
          name: "vue-router",
          var: "VueRouter",
          pathList: [
            {
              path: `https://cdn.staticfile.org/element-plus/2.3.12/index.full.min.js`,
              alternatePath: "./libs/element-plus/index.full.min.js",
            },
            {
              tag: "link",
              attrs: {},
              path: `//cdn.jsdelivr.net/npm/element-plus/dist/index.css`,
              alternatePath: "./libs/element-plus/index.css",
            },
          ],
        },
      ],
    }),
  ],
});
0.1.0

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.0.13

4 months ago

0.0.12

4 months ago

0.0.11

4 months ago

0.0.10

4 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.6

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago