Added scss to diagnostic build script
diff --git a/views/ngXosViews/diagnostic/gulp/build.js b/views/ngXosViews/diagnostic/gulp/build.js
index 00b3e78..3853943 100644
--- a/views/ngXosViews/diagnostic/gulp/build.js
+++ b/views/ngXosViews/diagnostic/gulp/build.js
@@ -45,7 +45,7 @@
mqpacker,
csswring
];
- console.log(options.css);
+
gulp.src([
`${options.css}**/*.css`,
`!${options.css}dev.css`
@@ -133,12 +133,28 @@
.pipe(eslint.failAfterError());
});
+ // inject CSS
+ gulp.task('injectCss', function(){
+ return gulp.src(options.src + 'index.html')
+ .pipe(
+ inject(
+ gulp.src(options.src + 'css/*.css'),
+ {
+ ignorePath: [options.src]
+ }
+ )
+ )
+ .pipe(gulp.dest(options.src));
+ });
+
gulp.task('build', function() {
runSequence(
+ 'lint',
'templates',
'babel',
'scripts',
'wiredep',
+ 'injectCss',
'copyHtml',
'copyCss'
);