diff options
author | amzrk2 | 2020-06-14 00:06:35 +0800 |
---|---|---|
committer | amzrk2 | 2020-06-14 00:06:35 +0800 |
commit | 231964080b26b3b3cab91b2c6144a784d3bef99d (patch) | |
tree | cb528f92f65f1bdc8c3a679cf1d8cbb7f1375e87 /gulpfile.js | |
parent | d6a2a5d08804ce712185a41229d531a96d03fe95 (diff) | |
download | hugo-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.js | 4 |
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); }; |