gulp-autoprefixer (pc断和移动端兼容配置)

ulp.task("prefixer", function(){
    gulp.src("app/css/**/*.css")
        .pipe(autoprefixer(
            {
                browser: ['这个到底要考虑什么版本'],
                cascade: false
            }
        ))
        .pipe(gulp.dest("dist"))
});

如果要考虑PC端

['> 1%', 'Firefox >= 10', 'ie >= 9', 'iOS >= 4', 'Chrome >= 10'];

只考虑移动端

['Firefox >= 10', 'iOS >= 4', 'Chrome >= 10']
发布了12 篇原创文章 · 获赞 0 · 访问量 3645

猜你喜欢

转载自blog.csdn.net/weixin_41779718/article/details/104455422
今日推荐