From 8800745ba310d9194974a191c169b1d1e2d57505 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 9 Aug 2016 00:06:05 +0800 Subject: [PATCH] support show AriaNg version --- gulpfile.js | 1 + package.json | 1 + src/index.html | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 85f924d..1baec86 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -44,6 +44,7 @@ gulp.task('html', ['styles', 'scripts', 'views'], function () { return gulp.src([ 'src/*.html' ]).pipe($.useref({searchPath: ['.tmp', 'src', '.']})) + .pipe($.injectVersion()) .pipe($.if('js/*.js', $.replace(/\/\/# sourceMappingURL=.*/g, ''))) .pipe($.if('css/*.css', $.replace(/\/\*# sourceMappingURL=.* \*\/$/g, ''))) .pipe($.if(['js/moment-with-locales-*.min.js', 'js/plugins.min.js', 'js/aria-ng.min.js'], $.uglify({preserveComments: 'license'}))) diff --git a/package.json b/package.json index d24767d..510a38f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "gulp-eslint": "^2.1.0", "gulp-htmlmin": "^2.0.0", "gulp-if": "^2.0.1", + "gulp-inject-version": "^1.0.1", "gulp-load-plugins": "^1.2.4", "gulp-manifest": "^0.1.1", "gulp-plumber": "^1.1.0", diff --git a/src/index.html b/src/index.html index eaa2de8..5d203a9 100644 --- a/src/index.html +++ b/src/index.html @@ -43,7 +43,7 @@