songsiqi / px2rem

According to one stylesheet, generate rem version and @1x, @2x and @3x stylesheet.
558 stars 92 forks source link

[新功能]对指定的属性不做转换 #4

Closed zenoven closed 8 years ago

zenoven commented 8 years ago

在遇到配置的一些属性时自动不做转换,这样不用手动去写 /*no*/,会省去很多工作量。 另外因为单元测试没有什么经验,不知道这样写会不会有问题,还请多多指教~

var px2remIns = new Px2rem({
        noTransformProperties: [
            'border',
            'border-width',
            'border-top-width',
            'border-right-width',
            'border-bottom-width',
            'border-left-width',
            'font',
            'font-size',
            'border-radius',
            '-webkit-box-shadow',
            '-moz-box-shadow',
            'box-shadow'
        ]
    });
coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling e8a5f7cb2a2b1bdd98a8e767f44293d332c70347 on zenoven:master into d11fe8ddd67acc3a05d7d4ee1724f6d560951962 on songsiqi:master.