From 0e0fa4ebbf0d14fee79d096013777270002df058 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 17 Jul 2016 00:51:23 +0800 Subject: [PATCH] minify language resource --- gulpfile.js | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 3a49f0d..b8b72b7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -45,6 +45,7 @@ gulp.task('html', ['styles', 'scripts'], function () { gulp.task('langs', function () { return gulp.src('src/langs/**/*') + .pipe($.jsonminify()) .pipe(gulp.dest('dist/langs')); }); diff --git a/package.json b/package.json index 20f60ba..e39f5e1 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "gulp-eslint": "^2.0.0", "gulp-htmlmin": "^1.3.0", "gulp-if": "^2.0.0", + "gulp-jsonminify": "^1.0.0", "gulp-load-plugins": "^0.10.0", "gulp-plumber": "^1.0.1", "gulp-replace": "^0.5.4",