@weapp-vite/web 0.0.2

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,24 @@
1
+ import { Plugin } from 'vite';
2
+
3
+ interface WxssTransformOptions {
4
+ /**
5
+ * How many CSS pixels should a single rpx represent.
6
+ * Default approximates a 750rpx layout projected to 375px screens.
7
+ */
8
+ pxPerRpx?: number;
9
+ }
10
+ interface WxssTransformResult {
11
+ css: string;
12
+ }
13
+ declare function transformWxssToCss(source: string, options?: WxssTransformOptions): WxssTransformResult;
14
+
15
+ interface WeappWebPluginOptions {
16
+ wxss?: WxssTransformOptions;
17
+ /**
18
+ * Source root of the mini-program project. Defaults to `<root>/src`.
19
+ */
20
+ srcDir?: string;
21
+ }
22
+ declare function weappWebPlugin(options?: WeappWebPluginOptions): Plugin;
23
+
24
+ export { type WeappWebPluginOptions as W, transformWxssToCss as t, weappWebPlugin as w };
@@ -0,0 +1,24 @@
1
+ import { Plugin } from 'vite';
2
+
3
+ interface WxssTransformOptions {
4
+ /**
5
+ * How many CSS pixels should a single rpx represent.
6
+ * Default approximates a 750rpx layout projected to 375px screens.
7
+ */
8
+ pxPerRpx?: number;
9
+ }
10
+ interface WxssTransformResult {
11
+ css: string;
12
+ }
13
+ declare function transformWxssToCss(source: string, options?: WxssTransformOptions): WxssTransformResult;
14
+
15
+ interface WeappWebPluginOptions {
16
+ wxss?: WxssTransformOptions;
17
+ /**
18
+ * Source root of the mini-program project. Defaults to `<root>/src`.
19
+ */
20
+ srcDir?: string;
21
+ }
22
+ declare function weappWebPlugin(options?: WeappWebPluginOptions): Plugin;
23
+
24
+ export { type WeappWebPluginOptions as W, transformWxssToCss as t, weappWebPlugin as w };