-
Notifications
You must be signed in to change notification settings - Fork 0
/
elder.config.js
48 lines (46 loc) · 991 Bytes
/
elder.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
const obscureConfig = require('./obscure.config.js');
require('dotenv').config();
const isDev = process.env.NODE_ENV === 'development';
module.exports = {
origin: 'localhost:3000',
lang: 'en',
srcDir: 'src',
distDir: 'public',
rootDir: process.cwd(),
build: {},
prefix: '',
server: {
cacheRequests: false,
},
props: {
hydration: isDev ? 'html' : 'hybrid',
compress: true,
},
debug: {
reload: false,
stacks: false,
hooks: false,
performance: false,
build: false,
automagic: false,
},
hooks: {},
plugins: {
'obsidian-parser': obscureConfig,
// '@elderjs/plugin-images': {
// widths: [1280, 992, 768, 576, 400, 350, 200],
// fileTypes: ['webp'],
// folders: [
// {
// src: '/assets/images/*',
// output: '/images/',
// },
// // {
// // src: `/src/routes/**/vault${obscureConfig.mediaFolder}`,
// // output: '/images/',
// // },
// ],
// },
},
shortcodes: { closePattern: '}}}', openPattern: '{{{' },
};