-
Notifications
You must be signed in to change notification settings - Fork 69
/
config.js
50 lines (44 loc) · 1022 Bytes
/
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
40
41
42
43
44
45
46
47
48
49
50
const config = {
tailwindjs: "./tailwind.config.js",
port: 9050,
purgecss: {
content: ["src/**/*.{html,js,php}"],
safelist: {
standard: [/^pre/, /^code/],
greedy: [/token.*/],
},
},
imagemin: {
png: [0.7, 0.7], // range between min (0) and max (1) as quality - 70% with current values for png images,
jpeg: 70, // % of compression for jpg, jpeg images
},
};
// tailwind plugins
const plugins = {
typography: true,
forms: true,
containerQueries: true,
};
// base folder paths
const basePaths = ["src", "dist", "build"];
// folder assets paths
const folders = ["css", "js", "img", "fonts", "third-party"];
const paths = {
root: "./",
};
basePaths.forEach((base) => {
paths[base] = {
base: `./${base}`,
};
folders.forEach((folderName) => {
const toCamelCase = folderName.replace(/\b-([a-z])/g, (_, c) =>
c.toUpperCase()
);
paths[base][toCamelCase] = `./${base}/${folderName}`;
});
});
module.exports = {
config,
plugins,
paths,
};