summaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authoramzrk22020-06-14 00:06:35 +0800
committeramzrk22020-06-14 00:06:35 +0800
commit231964080b26b3b3cab91b2c6144a784d3bef99d (patch)
treecb528f92f65f1bdc8c3a679cf1d8cbb7f1375e87 /gulpfile.js
parentd6a2a5d08804ce712185a41229d531a96d03fe95 (diff)
downloadhugo-theme-fuji-231964080b26b3b3cab91b2c6144a784d3bef99d.tar.gz
hugo-theme-fuji-231964080b26b3b3cab91b2c6144a784d3bef99d.tar.bz2
hugo-theme-fuji-231964080b26b3b3cab91b2c6144a784d3bef99d.zip
In-post APlayer now support multiple files
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 7caec20..a0df114 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,4 +1,5 @@
var pipeline = require('readable-stream').pipeline;
+var del = require('del');
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var babel = require('gulp-babel');
@@ -58,6 +59,9 @@ function css() {
}
exports.build = gulp.parallel(js, css);
+exports.clean = function () {
+ return del(['static/assets/css/fuji.min.css.map', 'static/assets/js/fuji.min.js.map']);
+};
exports.devJs = function () {
return gulp.watch('assets/js/fuji.js', { delay: 500 }, devJs);
};