From 590dce2243048fa508850e7d8df0234f69d61b88 Mon Sep 17 00:00:00 2001 From: Amio Date: Tue, 10 Jun 2014 16:15:15 +0800 Subject: [PATCH] =?UTF-8?q?Build=20=E5=86=85=E5=AE=B9=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E7=9A=84=E8=84=9A=E6=9C=AC=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E9=AB=98=E4=B8=80=E7=BA=A7=20server:dist=20=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 7 ++++--- home/index.html | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index d63579e..0f6c3bf 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -66,9 +66,9 @@ gulp.task('server:home', function () { open('http://localhost:9999/home'); }); -gulp.task('server:dist', ['build'], function () { - var servers = createServers(BUILD_ROOT, LOCAL_PORT, LIVERELOAD_PORT); - gulp.watch([BUILD_ROOT + '/**.*'], servers.onchange); +gulp.task('server:dist', function () { + var servers = createServers('./dist', LOCAL_PORT, LIVERELOAD_PORT); + gulp.watch(['./dist' + '/**.*'], servers.onchange); open('http://localhost:9999'); }); @@ -109,6 +109,7 @@ gulp.task('usemin', ['html2js'], function () { gulp.src('home/*.html') .pipe($.usemin({ css: [$.autoprefixer(), $.minifyCss(), $.rev()], + js: [$.ngmin(), $.uglify(), $.rev()], html: [$.minifyHtml({empty: true})] })) .pipe(gulp.dest('dist/home')); diff --git a/home/index.html b/home/index.html index 601c0d0..ba74c08 100644 --- a/home/index.html +++ b/home/index.html @@ -130,8 +130,12 @@

ViewOn Mobile

Buy me a coffee! (੭ु๑‾᷄ ⁻̫ ‾᷅)੭ु⁾⁾ + + + +