-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.mjs
More file actions
57 lines (49 loc) · 1.05 KB
/
config.mjs
File metadata and controls
57 lines (49 loc) · 1.05 KB
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
const BASE_DIST_DIR = "./dist";
const BASE_DIR = "./src";
export default {
BASE_DIR,
BASE_DIST_DIR,
js: {
mainEntry: `${BASE_DIR}/scripts/main.ts`,
entries: `${BASE_DIR}/scripts/**/*.ts`,
outDir: `${BASE_DIST_DIR}/public/js`,
outputFile: "[name].js"
},
pug: {
entries: `${BASE_DIR}/pug/*.pug`,
outDir: BASE_DIST_DIR
},
sass: {
entries: `${BASE_DIR}/styles/*.scss`,
outDir: `${BASE_DIST_DIR}/public/css`,
},
assets: {
images: {
src: `${BASE_DIR}/assets/images/**`,
dest: `${BASE_DIST_DIR}/public/assets/images`
}
},
tailwind: {
content: [`${BASE_DIR}/**/*.{html,pug,js,ts,jsx,tsx}`]
},
browserSync: {
open: false,
port: 3000,
uiPort: 3000,
dest: BASE_DIST_DIR,
notify: false,
ui: false,
online: false,
ghostMode: {
clicks: false,
forms: false,
scroll: false
}
},
watch: {
sass: [`${BASE_DIR}/styles/**/*.scss`],
js: [`${BASE_DIR}/scripts/**/*.*`],
pug: [`${BASE_DIR}/pug/**/*.pug`],
watchConfig: true
}
};