Added environments to disable livereload for production, updated readme
This commit is contained in:
parent
8ce92c3d7a
commit
34caa8159b
@ -9,6 +9,7 @@ This is the code behind timstallard.me.uk, which is built using Docpad.
|
||||
(note: you'll need to use `docpad.cmd` on Windows, due to an bug, since a plain js docpad config file is being used, rather than coffeescript)
|
||||
|
||||
### To compile the site for deployment:
|
||||
1. Run `docpad generate`
|
||||
1. Run `docpad clean` to remove dev files
|
||||
2. Run `docpad generate --env=static`
|
||||
|
||||
© Tim Stallard 2016
|
||||
|
12
docpad.js
12
docpad.js
@ -37,6 +37,9 @@ var docpadConfig = {
|
||||
formatted: "formattedDate"
|
||||
}
|
||||
]
|
||||
},
|
||||
livereload: {
|
||||
enabled: true
|
||||
}
|
||||
},
|
||||
templateData: {
|
||||
@ -62,6 +65,15 @@ var docpadConfig = {
|
||||
"https://fonts.googleapis.com/css?family=Open+Sans"
|
||||
]);
|
||||
}
|
||||
},
|
||||
environments: {
|
||||
static: {
|
||||
plugins: {
|
||||
livereload: {
|
||||
enabled: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user