Skip to content

这是一个yeoman generator。生成使用rem方式适配移动终端的web工程。

Notifications You must be signed in to change notification settings

sethzhao/generator-rem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

简介

这是一个yeoman generator。生成使用rem方式适配移动终端的web工程。支持sass,autoprefixer,liveReload等,并可以自动将px转成rem,详见参考文章内提到的postcss插件px2rem。

使用方法

安装包

npm install -g yo
npm install -g generator-rem
npm install -g gulp-cli

创建项目

yo rem projectname

参数说明

remUnit是设计稿宽度除以10。 baseDpr是物理像素和css像素的比值。 可在gulpfile.js更改。

安装项目

cd projectname
npm install

启动项目

gulp

参考文章

使用Flexible实现手淘H5页面的终端适配

About

这是一个yeoman generator。生成使用rem方式适配移动终端的web工程。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published