You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, I might be doing something wrong here but when I'm using gulp-inject it seems to be working okay and my js/css files are being injected into my html but when I look at the console it's telling me there's nothing to be injected. Any thoughts?
vargulp=require('gulp');varjshint=require('gulp-jshint');varnodemon=require('gulp-nodemon');varjsFiles=['*.js','src/**/*.js'];gulp.task('style',function(){returngulp.src(jsFiles).pipe(jshint()).pipe(jshint.reporter('jshint-stylish',{verbose: true}));});gulp.task('inject',function(){varwiredep=require('wiredep').stream;varinject=require('gulp-inject');varinjectSrc=gulp.src(['./public/css/*.css','./public/js/*.js'],{read: false});varinjectOptions={ignorePath: '/public'};varoptions={bowerJson: require('./bower.json'),directory: './public/lib',ignorePath: '../../public'};returngulp.src('./src/views/*.ejs').pipe(wiredep(options)).pipe(inject(injectSrc,injectOptions)).pipe(gulp.dest('./src/views'));});gulp.task('serve',['style','inject'],function(){varoptions={script: 'app.js',delayTime: 1,env: {'PORT': 3000},watch: jsFiles};// as events fire nodemon will returnreturnnodemon(options).on('restart',function(ev){console.log('Restarting....');});});
The text was updated successfully, but these errors were encountered:
Hey guys, I might be doing something wrong here but when I'm using gulp-inject it seems to be working okay and my js/css files are being injected into my html but when I look at the console it's telling me there's nothing to be injected. Any thoughts?
The text was updated successfully, but these errors were encountered: