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']

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章