diff options
author | amzrk2 | 2020-06-02 12:57:59 +0800 |
---|---|---|
committer | amzrk2 | 2020-06-02 12:57:59 +0800 |
commit | e6afd04368f56af57b77f71be4dda5a4d9279a64 (patch) | |
tree | d4b84c7fe71a2810b9f20620a85bd4f31f477549 /gulpfile.js | |
parent | 5f049d78bf1a3fd020fe2725c46dbbb24ff7380e (diff) | |
download | hugo-theme-fuji-e6afd04368f56af57b77f71be4dda5a4d9279a64.tar.gz hugo-theme-fuji-e6afd04368f56af57b77f71be4dda5a4d9279a64.tar.bz2 hugo-theme-fuji-e6afd04368f56af57b77f71be4dda5a4d9279a64.zip |
CDN support added
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index 26c508d..e6eebff 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -36,7 +36,16 @@ function css() { ); } -exports.build = gulp.parallel(js, css); +function dist() { + return pipeline( + gulp.src('static/assets/css/*.*'), + gulp.dest('dist/'), + gulp.src('static/assets/js/*.*'), + gulp.dest('dist/') + ); +} + +exports.build = gulp.series(gulp.parallel(js, css), dist); exports.devJs = function () { return gulp.watch('assets/js/fuji.js', { delay: 500 }, gulp.parallel(js)); }; |