grunt-px2rem
将 px 转换为 rem 用于移动 html5 页面
入门
这个插件需要 Grunt ~0.4.5
如果您以前没有使用过 ,请务必查看指南,因为它解释了如何创建以及安装和使用 Grunt 插件。 熟悉该过程后,您可以使用以下命令安装此插件:
npm install grunt-px2rem --save-dev
安装插件后,可以使用以下 JavaScript 代码在 Gruntfile 中启用它:
grunt . loadNpmTasks ( 'grunt-px2rem' ) ;
“px2rem”任务
概述
在项目的 Gruntfile 中,将名为px2rem的部分添加到传递给grunt.initConfig()的数据对象中。
grunt . initConfig ( {
px2rem : {
options : {
ign
评论0
最新资源