-
-
Notifications
You must be signed in to change notification settings - Fork 166
/
site.config.js
48 lines (36 loc) · 1.17 KB
/
site.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 path = require('path');
const fs = require('fs');
let ROOT = process.env.PWD;
if (!ROOT) {
ROOT = process.cwd();
}
const config = {
// Your website's name, used for favicon meta tags
site_name: 'Static Site Boilerplate',
// Your website's description, used for favicon meta tags
site_description: 'A modern boilerplate for static website development',
// Your website's URL, used for sitemap
site_url: 'http://staticsiteboilerplate.com',
// Google Analytics tracking ID (leave blank to disable)
googleAnalyticsUA: '',
// The viewport meta tag added to your HTML page's <head> tag
viewport: 'width=device-width,initial-scale=1',
// Source file for favicon generation. 512x512px recommended.
favicon: path.join(ROOT, '/src/images/favicon.png'),
// Local development URL
dev_host: 'localhost',
// Local development port
port: process.env.PORT || 8000,
// Advanced configuration, edit with caution!
env: process.env.NODE_ENV,
root: ROOT,
paths: {
config: 'config',
src: 'src',
dist: 'dist',
},
package: JSON.parse(
fs.readFileSync(path.join(ROOT, '/package.json'), { encoding: 'utf-8' }),
),
};
module.exports = config;