From 946573d2999ea66af11a5fa139942f7a64064317 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Wed, 2 Jan 2019 13:10:58 -0700 Subject: [PATCH] Homepage example improvements --- website/static/index.html | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/website/static/index.html b/website/static/index.html index bb43598..e1ed5b2 100755 --- a/website/static/index.html +++ b/website/static/index.html @@ -158,39 +158,34 @@

gulpfile.js

-const {
-  src,
-  dest,
-  parallel
-} = require('gulp');
-
-const pug = require('gulp-pug');
+const { 
src,
dest,
parallel
} = require('gulp'); +const pug =
require('gulp-pug'); const less =
require('gulp-less'); const minifyCSS =
require('gulp-csso'); const concat =
require('gulp-concat'); -const sourcemaps =
require('gulp-sourcemaps'); function html() { return src(
'client/templates/*.pug'
) .pipe(pug()) - .pipe(dest(
'build/html'
)) + .pipe(dest('build/html')) } function css() { return src(
'client/templates/*.less'
) .pipe(less()) .pipe(minifyCSS()) - .pipe(dest(
'build/css'
)) + .pipe(dest('build/css')) } function js() { - return src(
'client/javascript/*.js'
) - .pipe(sourcemaps.init()) - .pipe(concat(
'app.min.js'
)) - .pipe(sourcemaps.write()) - .pipe(dest(
'build/js'
)) + return src(
'client/javascript/*.js',
{ sourcemaps: true }
) + .pipe(concat('app.min.js')) + .pipe(dest(
'build/js',
{ sourcemaps: true }
)) } +exports.js = js; +exports.css = css; +exports.html = html; exports.default =
parallel(html, css, js);