-
Notifications
You must be signed in to change notification settings - Fork 7
/
gulpfile.js
35 lines (28 loc) · 796 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
const { gulp, tasks } = require("@darekkay/gulp");
const config = {
paths: {
destination: "src/assets/dist",
assets: [
{
source: "src/assets/src/assets/**/*",
destination: "src/assets/dist",
},
{
source: "node_modules/@darekkay/styles/dist/css/fonts/**/*",
destination: "src/assets/dist/fonts",
},
],
styles: {
source: "src/assets/src/styles.scss",
destination: "src/assets/dist",
},
icons: {
source: "src/assets/icons/**/*.svg",
destination: "src/assets/dist/icons",
},
},
};
const { series } = gulp;
const { clean, styles, assets, icons, env } = tasks(config);
const build = series(env("production"), clean, styles, assets, icons);
module.exports = { build, clean, styles };