Merge pull request #7 from TimStallard/env-livereload

Added environments to disable livereload for production, updated readme
This commit is contained in:
Tim Stallard 2016-10-21 16:57:05 +01:00 committed by GitHub
commit e49f4c1e56
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) (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: ### 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 © Tim Stallard 2016

View File

@ -37,6 +37,9 @@ var docpadConfig = {
formatted: "formattedDate" formatted: "formattedDate"
} }
] ]
},
livereload: {
enabled: true
} }
}, },
templateData: { templateData: {
@ -62,6 +65,15 @@ var docpadConfig = {
"https://fonts.googleapis.com/css?family=Open+Sans" "https://fonts.googleapis.com/css?family=Open+Sans"
]); ]);
} }
},
environments: {
static: {
plugins: {
livereload: {
enabled: false
}
}
}
} }
} }