Repository navigation
Expand file tree
/
Copy pathproject.cfg.js
More file actions
72 lines (70 loc) · 1.56 KB
/
Copy pathproject.cfg.js
File metadata and controls
72 lines (70 loc) · 1.56 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { getDataFn, getRouteFn } from './src/dynamic-pages/node/handlers.js';
import { getPublicationRouteManifest } from './src/static-pages/data/publicationRoutes.js';
const RETIRED_PUBLICATION_PATHS = getPublicationRouteManifest()
.filter(route => route.retired)
.map(route => route.path);
/** @type { JSDA_CFG } */
export default {
dynamic: {
port: 3000,
routes: './src/dynamic-pages/routes/routes.js',
cache: {
inMemory: true,
exclude: [
'/dashboard/',
],
},
baseDir: './src/dynamic-pages/',
getRouteFn,
getDataFn,
},
static: {
outputDir: './dist',
sourceDir: './src/static-pages',
copy: [
{
from: './node_modules/symbiote-ui/icons/material-symbols.css',
to: './js/material-symbols.css',
},
{
from: './node_modules/symbiote-ui/icons/material-symbols-outlined-400.ttf',
to: './js/material-symbols-outlined-400.ttf',
},
],
},
ssr: {
enabled: true,
imports: [
'./src/ui-components/universal/login-widget/logic.js',
'./src/ui-components/universal/side-panel/logic.js',
],
},
minify: {
js: true,
css: true,
html: true,
svg: true,
exclude: [],
},
bundle: {
js: true,
css: true,
exclude: [],
},
log: true,
importmap: {
packageList: [],
polyfills: false,
preload: false,
},
sitemap: {
enabled: true,
baseUrl: 'https://MakerDrive.github.io/cv/',
exclude: [
'/dashboard/',
'/404/',
'/login/',
...RETIRED_PUBLICATION_PATHS,
],
},
};