This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
79 lines (78 loc) · 1.9 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
var
envDev = ((process.env.NODE_ENV || '').trim().toLowerCase() !== 'production')
;
module.exports = {
metadata: {
envDev: envDev,
site: {
title: 'Jekyllsmith',
tagline: 'Jekyll-like Metalsmith',
description: 'A reserved <a href="http://jekyllrb.com" target="_blank">Jekyll</a> theme that places the utmost gravity on content with a hidden drawer. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a>.',
url: envDev ? 'localhost:4000' : 'https://S1SYPHOS.github.io',
baseurl: envDev ? '' : '/Gulp4-Metalsmith-Starter', // sub-directory, eg name.github.io/sub-directory
author: 'S1SYPHOS',
email: 'hello@twobrain.io',
github_repo: 'https://github.com/S1SYPHOS/Gulp4-Metalsmith-Starter',
twitter: 'twobrain_frontend',
version: '0.2.0'
}
},
paths: {
source: './_posts',
build: '_site'
},
assets: {
source: '_resources',
build: '_posts/assets'
},
enable: {
webpack: false
},
server: {
port: 4000,
notify: true,
open: true
},
envDev,
styles: {
prefix: [
// For more browsers, see https://github.com/ai/browserslist
'> 1%',
'last 3 versions',
'IE >= 9'
],
include: [
// 'node_modules',
// 'bower_components'
]
},
scripts: {
webpack: {
watch: false,
// entry: {},
// output: {},
// plugins: []
}
},
html: {
minify: {
// For more options, see https://github.com/kangax/html-minifier
removeComments: true,
collapseWhitespace: true,
removeRedundantAttributes: true,
keepClosingSlash: true,
minifyCSS: true,
minifyJS: true,
collapseBooleanAttributes: true,
removeAttributeQuotes: true
},
sitemap: {
hostname: 'http://www.website.com',
omitIndex: true
},
feed: {
collection: 'posts',
destination: 'atom.xml'
}
}
}