在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):BlessCSS/gulp-bless开源软件地址(OpenSource Url):https://github.com/BlessCSS/gulp-bless开源编程语言(OpenSource Language):CSS 94.4%开源软件介绍(OpenSource Introduction):gulp-blessGulp plugin which splits CSS files suitably for Internet Explorer < 10. This is the a Gulp wrapper around bless.js (see blesscss.com). Installationnpm install gulp-bless Usagevar gulp = require('gulp');
var bless = require('gulp-bless');
gulp.task('css', function() {
gulp.src('style.css')
.pipe(bless())
.pipe(gulp.dest('./splitCSS'));
});
gulp.task('default', ['watch']);
// Rerun the task when a file changes
gulp.task('watch', function () {
gulp.watch('./css/*.css', ['css']);
}); bless(options).
Example: gulp.src('long.css')
.pipe(bless({
imports: false
}))
.pipe(gulp.dest('./')) About minificationYou should minify your CSS after it goes through gulp-bless. See BlessCSS/bless#90 as to why. Does this support sourcemaps?Yes. This can be used with gulp-sourcemaps. Team
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论