项目文件夹结构 SRC | ---- bower_components | ----应用程序 - > gulpfile
//注入凉亭组件
gulp.task('wiredep', function () {
var wiredep = require('wiredep').stream;
gulp.src('app/styles/*.scss')``
.pipe(wiredep({
directory: '../bower_components',
ignorePath: /\.\.\//
}))
.pipe(gulp.dest(appConfig.app+'/styles'));
gulp.src('app/**/*.html')
.pipe(wiredep({
directory: '../bower_components',
exclude: ['bootstrap-sass-official'],
ignorePath: /(\.\.\/){1,2}bower_components\//
}))
.pipe(gulp.dest(appConfig.app));
});
我看不到组件连接正确,索引html文件中引用的文件给出404,请你提供你的观点
由于 孙大信