From 444ebc0eb7dfdf82ba54a532b8eb5d48369fb8ef Mon Sep 17 00:00:00 2001 From: minwe Date: Wed, 9 Dec 2015 17:39:38 +0800 Subject: [PATCH] add stat code --- docs/_app/index.html | 1 + gulpfile.babel.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/docs/_app/index.html b/docs/_app/index.html index 1572fcb..eb9460d 100644 --- a/docs/_app/index.html +++ b/docs/_app/index.html @@ -21,5 +21,6 @@
+
diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 8cda6f9..7b016c4 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -235,6 +235,11 @@ gulp.task('docs:replace', () => { const replaceEnv = function(options) { return gulp.src(options.src) .pipe($.replace(rFrom, rTo)) + // replace stat code on dev + .pipe($.replace(/(.+)/g, + (match, $1) => { + return isProduction ? $1 : ''; + })) .pipe(gulp.dest(options.dist)); }; let docs = replaceEnv({