Added environments to disable livereload for production, updated readme

This commit is contained in:
Tim Stallard 2016-10-21 16:56:21 +01:00
parent 8ce92c3d7a
commit 34caa8159b
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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
}
}
}
}
}