less-plugin-rpxtorem
v0.0.2
Published
Convert rpx to rem plugin for less.js base in width
Readme
less-plugin-rpxtorem
基于宽度将rpx转换为rem, 宽度默认750;
基于 https://github.com/fengdi/less-plugin-rpx2rem 开发
本项目需结合
- https://github.com/jieyou/rem_layout
- https://github.com/2type/rem/blob/gh-pages/index.html#L8
Convert rpx to rem plugin for less.js
lessc usage
npm install -g less-plugin-rpxtoremand then on the command line,
lessc file.less --rpxtoremYou can set the 'width' option to control the ratio of rpx to rem (default 100).
lessc --rpxtorem="width=750" index.less index.css.Programmatic usage
var LessPluginRpxToRem = require('less-plugin-rpxtorem');
new LessPluginRpxToRem({
width:750
})Browser usage
Browser usage is not supported at this time.
