@moluoxixi/css-module-global-root-plugin 0.0.9 → 0.0.10
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.
- package/es/index.d.ts +5 -2
- package/es/index.mjs +3 -2
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export interface CssModuleGlobalRootPluginOptions {
|
|
|
12
12
|
*/
|
|
13
13
|
removeRoot?: boolean;
|
|
14
14
|
}
|
|
15
|
-
type cssModuleGlobalRootPluginType = (config?: CssModuleGlobalRootPluginOptions) => Plugin;
|
|
16
15
|
/**
|
|
17
16
|
* PostCSS 插件:处理 CSS Module 文件中的 :root 选择器
|
|
18
17
|
*
|
|
@@ -69,5 +68,9 @@ type cssModuleGlobalRootPluginType = (config?: CssModuleGlobalRootPluginOptions)
|
|
|
69
68
|
* @param options 插件配置选项
|
|
70
69
|
* @returns {Plugin} PostCSS 插件实例
|
|
71
70
|
*/
|
|
72
|
-
declare
|
|
71
|
+
declare function cssModuleGlobalRootPlugin(options?: CssModuleGlobalRootPluginOptions): Plugin;
|
|
72
|
+
declare namespace cssModuleGlobalRootPlugin {
|
|
73
|
+
var postcss: boolean;
|
|
74
|
+
}
|
|
73
75
|
export default cssModuleGlobalRootPlugin;
|
|
76
|
+
export { cssModuleGlobalRootPlugin };
|
package/es/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
function cssModuleGlobalRootPlugin(options = {}) {
|
|
2
2
|
const { removeRoot = true } = options;
|
|
3
3
|
return {
|
|
4
4
|
postcssPlugin: "css-module-global-root",
|
|
@@ -52,8 +52,9 @@ const cssModuleGlobalRootPlugin = (options = {}) => {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
}
|
|
55
|
+
}
|
|
56
56
|
cssModuleGlobalRootPlugin.postcss = true;
|
|
57
57
|
export {
|
|
58
|
+
cssModuleGlobalRootPlugin,
|
|
58
59
|
cssModuleGlobalRootPlugin as default
|
|
59
60
|
};
|