generated from MaybeThisIsRu/smix-eleventy-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
42 lines (39 loc) · 907 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
const path = require("path");
// Src
const projectSrcDir = path.resolve(__dirname, ".");
const assetSrcDir = path.resolve(__dirname, "assets");
// Dist
const projectDestDir = path.resolve(__dirname, "dist");
const assetDestDir = `${projectDestDir}/assets`;
const paths = {
html: {
src: `${projectDestDir}/**/*.html`,
dest: projectDestDir
},
img: {
src: `${assetSrcDir}/img/**/*.{png,jpg,jpeg,svg}`,
dest: `${assetDestDir}/img`
},
js: {
entry: `${assetSrcDir}/js/index.js`,
outputDir: `${assetDestDir}/js`,
output: "index.min.js"
},
css: {
src: `${assetSrcDir}/css`,
dest: `${assetDestDir}/css`,
name: "style.css",
additionalWatch: [
`${projectSrcDir}/tailwind.config.js`,
],
purge: {
content: [`${projectDestDir}/**/*.html`]
}
},
font: {
src: `${assetSrcDir}/font/**/*`,
dest: `${assetDestDir}/font`
},
projectDestDir: projectDestDir
};
export { paths };