@cnguu/vite-plugin-uni-cdn 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ import { FilterPattern, Plugin } from 'vite';
2
+
3
+ interface VitePluginUniCdnOption {
4
+ /**
5
+ * cdn 地址
6
+ */
7
+ cdn?: string;
8
+ /**
9
+ * 替换资源目录,不在该目录下的资源不会替换 cdn
10
+ */
11
+ sourceDir?: string;
12
+ /**
13
+ * 扫描白名单 GLOB 格式
14
+ */
15
+ include?: FilterPattern;
16
+ /**
17
+ * 扫描黑名单 GLOB 格式
18
+ */
19
+ exclude?: FilterPattern;
20
+ /**
21
+ * 是否删除替换资源目录对应的输出目录
22
+ */
23
+ deleteOutputFiles?: boolean;
24
+ /**
25
+ * 是否输出命令行信息
26
+ */
27
+ verbose?: boolean;
28
+ }
29
+ declare function UniCdn(opt: VitePluginUniCdnOption): Plugin;
30
+
31
+ export = UniCdn;
32
+ export type { VitePluginUniCdnOption };
@@ -0,0 +1,32 @@
1
+ import { FilterPattern, Plugin } from 'vite';
2
+
3
+ interface VitePluginUniCdnOption {
4
+ /**
5
+ * cdn 地址
6
+ */
7
+ cdn?: string;
8
+ /**
9
+ * 替换资源目录,不在该目录下的资源不会替换 cdn
10
+ */
11
+ sourceDir?: string;
12
+ /**
13
+ * 扫描白名单 GLOB 格式
14
+ */
15
+ include?: FilterPattern;
16
+ /**
17
+ * 扫描黑名单 GLOB 格式
18
+ */
19
+ exclude?: FilterPattern;
20
+ /**
21
+ * 是否删除替换资源目录对应的输出目录
22
+ */
23
+ deleteOutputFiles?: boolean;
24
+ /**
25
+ * 是否输出命令行信息
26
+ */
27
+ verbose?: boolean;
28
+ }
29
+ declare function UniCdn(opt: VitePluginUniCdnOption): Plugin;
30
+
31
+ export { UniCdn as default };
32
+ export type { VitePluginUniCdnOption };
@@ -0,0 +1,32 @@
1
+ import { FilterPattern, Plugin } from 'vite';
2
+
3
+ interface VitePluginUniCdnOption {
4
+ /**
5
+ * cdn 地址
6
+ */
7
+ cdn?: string;
8
+ /**
9
+ * 替换资源目录,不在该目录下的资源不会替换 cdn
10
+ */
11
+ sourceDir?: string;
12
+ /**
13
+ * 扫描白名单 GLOB 格式
14
+ */
15
+ include?: FilterPattern;
16
+ /**
17
+ * 扫描黑名单 GLOB 格式
18
+ */
19
+ exclude?: FilterPattern;
20
+ /**
21
+ * 是否删除替换资源目录对应的输出目录
22
+ */
23
+ deleteOutputFiles?: boolean;
24
+ /**
25
+ * 是否输出命令行信息
26
+ */
27
+ verbose?: boolean;
28
+ }
29
+ declare function UniCdn(opt: VitePluginUniCdnOption): Plugin;
30
+
31
+ export = UniCdn;
32
+ export type { VitePluginUniCdnOption };