-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.options.js
75 lines (72 loc) · 1.92 KB
/
gulpfile.options.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
module.exports = {
/**
* SASS / SCSS Configuration
*/
sass: {
src: [
"./assets/css/src/wp-admin.scss",
"./assets/css/src/wp-login.scss",
"./assets/css/src/styles.scss"
],
watch: ["./assets/css/src/**/*.scss"],
distFolder: "./assets/css/dist",
minify: true,
sourcemap: true
},
/**
* JavaScript Configuration
*/
javascript: {
list: [
{
name: "themes",
src: [
"./node_modules/jquery/dist/jquery.js",
"./assets/js/src/themes/index.js",
"./assets/js/src/themes/about.js",
"./assets/js/src/themes/contact.js"
]
},
{
name: "single-js",
src: ["./assets/js/src/single-js.js"]
},
{
name: "vendors",
src: [
"./node_modules/jquery/dist/jquery.js",
"./node_modules/swiper/js/swiper.js"
]
},
{
name: "main",
src: [
"./assets/js/src/main/test.js",
"./assets/js/src/main/another-test.js"
]
}
],
watch: ["./assets/js/src/**/*.js"],
distFolder: "./assets/js/dist",
minify: true,
sourcemap: true
},
/**
* BrowserSync Configuration
*/
browserSync: {
watch: [
"./assets/css/dist/*.min.css",
"./assets/js/dist/*.min.js",
"./**/*.php"
],
// Available config options
// https://www.browsersync.io/docs/options
config: {
proxy: "http://projectname.local/",
host: "projectname.local",
watchTask: true,
open: "external"
}
}
};