Moved to ngAnnotate from ngMin
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 513543e..983a531 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
@@ -9,7 +9,7 @@
// The template are parsed and added to js with angular $templateCache
var gulp = require('gulp');
-var ngmin = require('gulp-ngmin');
+var ngAnnotate = require('gulp-ng-annotate');
var uglify = require('gulp-uglify');
var templateCache = require('gulp-angular-templatecache');
var runSequence = require('run-sequence');
@@ -33,7 +33,7 @@
return gulp.src([
options.tmp + '**/*.js'
])
- .pipe(ngmin())
+ .pipe(ngAnnotate())
.pipe(angularFilesort())
.pipe(concat('xos<%= fileName %>.js'))
.pipe(uglify())
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 c3cf6db..dfb4088 100644
--- a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/package.json
+++ b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/package.json
@@ -26,13 +26,13 @@
"gulp-concat": "^2.6.0",
"gulp-inject": "^3.0.0",
"gulp-minify-html": "^1.0.4",
- "gulp-ngmin": "^0.3.0",
"gulp-uglify": "^1.4.2",
"http-proxy": "^1.12.0",
"proxy-middleware": "^0.15.0",
"run-sequence": "^1.1.4",
"wiredep": "^3.0.0-beta",
"wrench": "^1.5.8",
+ "gulp-ng-annotate": "^1.1.0",
"lodash": "^3.10.1"
}
}
diff --git a/xos/core/xoslib/static/js/vendor/ngXosHelpers.js b/xos/core/xoslib/static/js/vendor/ngXosHelpers.js
new file mode 100644
index 0000000..e1b59b7
--- /dev/null
+++ b/xos/core/xoslib/static/js/vendor/ngXosHelpers.js
@@ -0,0 +1 @@
+!function(){"use strict";function e(e,r,t){e.interceptors.push("SetCSRFToken"),r.startSymbol("{$"),r.endSymbol("$}"),t.defaults.stripTrailingSlashes=!1}angular.module("xos.helpers",["ngCookies"]).config(e),e.$inject=["$httpProvider","$interpolateProvider","$resourceProvider"]}(),function(){"use strict";function e(){return{request:function(e){return-1===e.url.indexOf(".html")&&(e.url+="?no_hyperlinks=1"),e}}}angular.module("xos.helpers").factory("NoHyperlinks",e)}(),function(){"use strict";function e(e){return{request:function(r){return"GET"!==r.method&&(r.headers["X-CSRFToken"]=e.get("xoscsrftoken")),r}}}angular.module("xos.helpers").factory("SetCSRFToken",e),e.$inject=["$cookies"]}();
\ No newline at end of file