Merge pull request #7 from TimStallard/env-livereload
Added environments to disable livereload for production, updated readme
This commit is contained in:
commit
e49f4c1e56
@ -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
|
||||||
|
12
docpad.js
12
docpad.js
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user