-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gulpfile.js
20 lines (14 loc) · 1.06 KB
/
Gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';
const gulp = require('gulp');
const HubRegistry = require('gulp-hub');
const hub = new HubRegistry(['gulp_tasks/*.js']);
gulp.registry(hub);
// -----------------------------------------------------------------------------
// Task
// -----------------------------------------------------------------------------
gulp.task("build-fast", gulp.parallel("compile-sass", "compile-nunjucks", "compile-vendor", "compile-scripts", "copy-images", "copy-media", "copy-documents", "copy-livicons-assets", "copy-resources", "copy-meta"));
gulp.task("build", gulp.parallel("compile-sass", "compile-nunjucks", "compile-vendor", "compile-scripts", "optimize-images", "generate-webp", "copy-media", "copy-documents", "copy-livicons-assets", "compile-fonts", "copy-resources", "copy-meta"));
gulp.task("build-prod-fast", gulp.series("clean:dist", "build-fast", "critical"));
gulp.task("build-prod", gulp.series("clean:dist", "build", "critical", "sitemap"));
gulp.task("default", gulp.parallel("build-fast", "watch", "browser-sync"));
gulp.task("serve", gulp.parallel("browser-sync"));