嗨,我正在为我的项目使用bootstrap 3.3.7,它与现有应用程序的全局样式冲突,我尝试用gulp添加前缀,但对我不起作用,请建议我使用任何链接来避免bootstrap全局样式冲突或任何添加父类前缀的gulp任务,我都尝试了以下gulp任务,但没有成功
var gulp = require('gulp');
var cssPrefix = require('gulp-css-prefix');
gulp.task('css-prefix', function() {
return gulp.src('./bootstrap3/dist/css/*.css')
.pipe(cssPrefix({parentClass:'error-reporting'})).pipe(gulp.dest('./bootstrap15/dist/css/'));
});
var cssClassPrefix = require('gulp-css-class-prefix');
gulp.task('prefix', function() {
return gulp.src('./css/*.css')
.pipe(cssClassPrefix('error-reporting .', { ignored: [] }))
.pipe(gulp.dest('./css/'));
});``