postcss-classes-to-mixins:智能地将CSS类转换为SASS,Less和Stylus mixins

时间:2021-05-02 20:32:31
【文件属性】:
文件名称:postcss-classes-to-mixins:智能地将CSS类转换为SASS,Less和Stylus mixins
文件大小:67KB
文件格式:ZIP
更新时间:2021-05-02 20:32:31
JavaScript postcss类到混合 插件可将CSS类智能地转换为SASS,Less和Stylus mixins。 安装 npm install postcss-classes-to-mixins 例子 输入: /* style.css */ . red-btn { background : red; color : white; } 输出: /* style.scss */ @mixin red-btn () { background : red ; color : white ; } 用法 import postcss from 'postcss' import classesToMixins from 'postcss-classes-to-mixins' import fs from 'fs' const css = fs . readFileSync (
【文件预览】:
postcss-classes-to-mixins-master
----index.js(5KB)
----package.json(1KB)
----readme.md(2KB)
----.github()
--------workflows()
----LICENSE(1KB)
----package-lock.json(268KB)
----index.test.js(6KB)
----.npmignore(86B)
----.gitignore(153B)
----.editorconfig(147B)

网友评论