Build done
diff --git a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/gulp/build.js b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/gulp/build.js
index 33dde1e..768d8ca 100644
--- a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/gulp/build.js
+++ b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/gulp/build.js
@@ -21,6 +21,7 @@
var eslint = require('gulp-eslint');
var inject = require('gulp-inject');
var rename = require('gulp-rename');
+var replace = require('gulp-replace');
module.exports = function(options){
@@ -55,13 +56,12 @@
});
// copy html index to Django Folder
- gulp.task('copyHtml', function(){
- return gulp.src(options.src + 'xos<%= fileName %>.html')
- .pipe(gulp.dest(options.dashboards));
- });
- // copy html index to Django Folder
gulp.task('copyHtml', ['clean'], function(){
return gulp.src(options.src + 'index.html')
+ // remove dev dependencies from html
+ .pipe(replace(/<!-- bower:css -->(\n.*)*\n<!-- endbower --><!-- endcss -->/, ''))
+ .pipe(replace(/<!-- bower:js -->(\n.*)*\n<!-- endbower --><!-- endjs -->/, ''))
+ // injecting minified files
.pipe(
inject(
gulp.src([
diff --git a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/package.json b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/package.json
index 05554d8..63d7678 100644
--- a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/package.json
+++ b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/package.json
@@ -28,6 +28,7 @@
"gulp-inject": "^3.0.0",
"gulp-minify-html": "^1.0.4",
"gulp-rename": "^1.2.2",
+ "gulp-replace": "^0.5.4",
"gulp-uglify": "^1.4.2",
"http-proxy": "^1.12.0",
"proxy-middleware": "^0.15.0",
diff --git a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/src/index.html b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/src/index.html
index 6d5ac94..bf7f0dd 100644
--- a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/src/index.html
+++ b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/src/index.html
@@ -1,6 +1,6 @@
<!-- browserSync -->
<!-- bower:css -->
-<!-- endbower -->
+<!-- endbower --><!-- endcss -->
<!-- inject:css -->
<!-- endinject -->
@@ -9,6 +9,6 @@
</div>
<!-- bower:js -->
-<!-- endbower -->
+<!-- endbower --><!-- endjs -->
<!-- inject:js -->
<!-- endinject -->