-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstarter.config.mjs
55 lines (53 loc) · 1.5 KB
/
starter.config.mjs
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
const srcPath = "src";
const publicPath = "public";
const buildPath = "build";
const thirdPartyPath = `${srcPath}/third-party`;
const config = {
archive: {
input: `${publicPath}/**`,
output: `${buildPath}/`,
},
clean: [`${publicPath}/`],
content: "starter.content.json",
fonts: {
input: `${thirdPartyPath}/font-awesome/fonts/*`,
output: `${publicPath}/fonts/`,
},
images: {
input: `${srcPath}/images/**`,
output: `${publicPath}/images/`,
watch: `${srcPath}/images/**`,
},
scripts: {
copy: `${thirdPartyPath}/jquery/jquery.min.js`,
input: [
`${thirdPartyPath}/bootstrap/js/bootstrap.bundle.min.js`,
`${thirdPartyPath}/bootnavbar/js/bootnavbar.js`,
`${thirdPartyPath}/slick/js/slick.min.js`,
`${thirdPartyPath}/fancybox/js/jquery.fancybox.min.js`,
`${thirdPartyPath}/utilities/data-slick.js`,
`${thirdPartyPath}/utilities/fancybox-init.js`,
`${srcPath}/js/scripts.js`,
],
output: `${publicPath}/js/`,
watch: `${srcPath}/js/**/*.js`,
},
server: {
root: `${publicPath}/`,
},
sprites: {
input: `${srcPath}/sprites/images/*.png`,
output: `${srcPath}/images/`,
},
styles: {
input: `${srcPath}/scss/*.scss`,
output: `${publicPath}/css`,
watch: [`${srcPath}/scss/**/*.scss`, `${thirdPartyPath}/**/*.scss`],
},
templates: {
input: [`${srcPath}/html/**/*.twig`, `!${srcPath}/html/**/_*.twig`],
output: `${publicPath}/`,
watch: `${srcPath}/html/**/*.twig`,
},
};
export default config;