-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpConfig.js
66 lines (64 loc) · 1.33 KB
/
gulpConfig.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
// ------------------------------------ //
// --------- Settings & Paths --------- //
// ------------------------------------ //
const rootPath = './exercice',
srcPath = rootPath + '/assets',
buildPath = rootPath + '/build'
module.exports = {
settings: {
styles: true,
toc: true,
scripts: true,
svg: true,
images: true,
html: true,
},
paths: {
build: buildPath,
},
html: {
src: rootPath + '/content/**/*.html',
build: buildPath,
},
styles: {
src: srcPath + '/styles/styles.scss',
watch: srcPath + '/styles/**/*.scss',
build: buildPath + '/css',
},
toc: {
src: srcPath + '/styles/toc.scss',
watch: srcPath + '/styles/**/*.scss',
build: srcPath + '/styles',
},
scripts: {
src: srcPath + '/scripts/**/*.js',
build: buildPath + '/js',
},
images: {
src: srcPath + '/images/**/*.+(png|jpg|jpeg|gif|svg)',
build: buildPath + '/img',
},
svg: {
src: srcPath + '/svg/**/*.svg',
mode: {
stack: {
dest: './',
sprite: 'sprite.svg',
bust: false,
},
},
build: buildPath + '/img',
parameters: {
xmlDeclaration: false,
doctypeDeclaration: false,
dimensionAttributes: false,
},
},
browserSync: {
server: {
baseDir: buildPath,
},
open: false,
watch: true,
},
}