-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
43 lines (34 loc) · 850 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const { gulp, tasks } = require("@darekkay/gulp");
const buildIndex = require("./src/home-index/build");
const config = {
paths: {
destination: "build",
content: "public/**/*.html",
assets: [
{
source: "public/**/*.{jpg,jpeg,png,gif,avif,webp,svg,ico,json}",
destination: "build",
},
{
source: "node_modules/@darekkay/styles/dist/css/fonts/**/*",
destination: "build/assets/fonts",
},
],
styles: {
source: "scss/index.scss",
destination: "build/assets",
},
},
};
const { series } = gulp;
const { clean, styles, content, assets, env } = tasks(config);
const buildDataSources = (callback) => buildIndex(callback);
const build = series(
env("production"),
clean,
buildDataSources,
content,
styles,
assets
);
module.exports = { build };