-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp.config.js
33 lines (32 loc) · 990 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
const sourceFolder = "./src";
const buildFolder = "./dist";
export default {
build: {
html: `${buildFolder}/`,
css: `${buildFolder}/css/`,
js: `${buildFolder}/js/`,
images: `${buildFolder}/images/`,
svg: `${buildFolder}/icons/`,
files: `${buildFolder}/files/`,
},
src: {
html: `${sourceFolder}/*.html`,
scss: `${sourceFolder}/scss/main.scss`,
js: `${sourceFolder}/js/script.js`,
images: `${sourceFolder}/images/**/*.{jpg,jpeg,png,gif,webp,ico}`,
svgImages: `${sourceFolder}/images/**/*.svg`,
svg: `${sourceFolder}/icons/svg/*.svg`,
files: `${sourceFolder}/files/**/*.*`,
},
watch: {
html: `${sourceFolder}/**/*.html`,
scss: `${sourceFolder}/scss/**/*.scss`,
js: `${sourceFolder}/js/**/*.js`,
images: `${sourceFolder}/images/**/*.{jpg,jpeg,png,gif,webp,svg,ico}`,
svg: `${sourceFolder}/icons/svg/*.svg`,
files: `${sourceFolder}/files/**/*.*`,
},
clear: buildFolder,
buildFolder,
sourceFolder,
};