diff options
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r-- | gulpfile.babel.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 6a788a9ae..782b56406 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js | |||
@@ -11,10 +11,9 @@ import connect from 'gulp-connect'; | |||
11 | import { exec } from 'child_process'; | 11 | import { exec } from 'child_process'; |
12 | import dotenv from 'dotenv'; | 12 | import dotenv from 'dotenv'; |
13 | import sassVariables from 'gulp-sass-variables'; | 13 | import sassVariables from 'gulp-sass-variables'; |
14 | import { moveSync, removeSync } from 'fs-extra'; | 14 | import { removeSync } from 'fs-extra'; |
15 | import kebabCase from 'kebab-case'; | 15 | import kebabCase from 'kebab-case'; |
16 | import hexRgb from 'hex-rgb'; | 16 | import hexRgb from 'hex-rgb'; |
17 | import path from 'path'; | ||
18 | 17 | ||
19 | import config from './package.json'; | 18 | import config from './package.json'; |
20 | 19 | ||
@@ -80,6 +79,7 @@ const paths = { | |||
80 | }, | 79 | }, |
81 | }; | 80 | }; |
82 | 81 | ||
82 | // eslint-disable-next-line no-unused-vars | ||
83 | function _shell(cmd, cb) { | 83 | function _shell(cmd, cb) { |
84 | console.log('executing', cmd); | 84 | console.log('executing', cmd); |
85 | exec( | 85 | exec( |
@@ -136,7 +136,7 @@ export function html() { | |||
136 | .src(paths.html.src, { since: gulp.lastRun(html) }) | 136 | .src(paths.html.src, { since: gulp.lastRun(html) }) |
137 | .pipe(gulpIf(process.env.NODE_ENV !== 'development', htmlMin({ // Only minify in production to speed up dev builds | 137 | .pipe(gulpIf(process.env.NODE_ENV !== 'development', htmlMin({ // Only minify in production to speed up dev builds |
138 | collapseWhitespace: true, | 138 | collapseWhitespace: true, |
139 | removeComments: true | 139 | removeComments: true, |
140 | }))) | 140 | }))) |
141 | .pipe(gulp.dest(paths.html.dest)) | 141 | .pipe(gulp.dest(paths.html.dest)) |
142 | .pipe(connect.reload()); | 142 | .pipe(connect.reload()); |
@@ -224,7 +224,7 @@ export function watch() { | |||
224 | export function webserver() { | 224 | export function webserver() { |
225 | connect.server({ | 225 | connect.server({ |
226 | root: paths.dest, | 226 | root: paths.dest, |
227 | livereload: true | 227 | livereload: true, |
228 | }); | 228 | }); |
229 | } | 229 | } |
230 | 230 | ||