posthtml-px2rem:在基于PostHTMLHTML内联CSS中将px更改为rem

时间:2021-04-28 15:42:36
【文件属性】:
文件名称:posthtml-px2rem:在基于PostHTMLHTML内联CSS中将px更改为rem
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-28 15:42:36
JavaScript posthtml-px2rem 在基于HTML内联CSSpx更改为rem NPM主页: : 安装 使用安装: npm install posthtml - px2rem -- save 用法 gulpfile.js var posthtml = require ( 'gulp-posthtml' ) ; var posthtmlPx2rem = require ( 'posthtml-px2rem' ) ; gulp . src ( paths . src . html ) . pipe ( posthtml ( [ posthtmlPx2rem ( { rootValue : 20 , minPixelValue : 2 } ) ] ) ) . pipe ( gulp . dest ( paths . dist . dir ) ) ; 选项 options = lod
【文件预览】:
posthtml-px2rem-master
----.npmignore(80B)
----.gitignore(19B)
----index.js(2KB)
----readme.md(3KB)
----package.json(1KB)

网友评论