-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp.config.js
39 lines (32 loc) · 917 Bytes
/
gulp.config.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
const SOURCE_PATH = 'src/';
const BUILD_PATH = 'build/';
const PATHS = {
fonts: {
src: `${SOURCE_PATH}fonts/**/*.{woff,woff2}`,
output: `${BUILD_PATH}fonts/`,
},
images: {
src: `${SOURCE_PATH}assets/**/*.{png,jpg,svg}`,
spriteSrc: `${SOURCE_PATH}/assets/svg-sprite/icon-*.svg`,
webpSrc: `${SOURCE_PATH}assets/**/*.{png,jpg}`,
dest: `${BUILD_PATH}assets/`,
spriteFileName: 'svg-sprite.svg',
},
html: {
src: `${SOURCE_PATH}*.html`,
srcWatch: `${SOURCE_PATH}*.html`,
dest: BUILD_PATH,
},
styles: {
src: `${SOURCE_PATH}styles/**/*.scss`,
dest: `${BUILD_PATH}css/`,
inputFileName: `${SOURCE_PATH}styles/styles.scss`,
outputFileName: 'styles.min.css',
},
scripts: {
srcWatch: `${SOURCE_PATH}scripts/**/**/*.js`,
inputFileName: `${SOURCE_PATH}scripts/index.js`,
dest: `${BUILD_PATH}`,
},
};
module.exports = { PATHS, BUILD_PATH }