Vorebereitungen zur Veröffentlichung I

This commit is contained in:
Simon Martens
2023-03-21 16:23:03 +01:00
parent b297ceb8e7
commit f7c86cb902
3 changed files with 10 additions and 3 deletions

View File

@@ -158,6 +158,12 @@ module.exports = function (config) {
// Set static folder, which copntent will be copied to the output folder
config.addPassthroughCopy({ "src/static/": "/static/" });
// Output directory
var outputdir = "site";
if (process.env.ELEVENTY_ENVIRONMENT == "production") {
outputdir = "dist";
}
return {
// Set custom directories for dynamic pages, data, includes, layouts and finally the generated output
dir:
@@ -166,7 +172,7 @@ module.exports = function (config) {
layouts: "../layouts",
includes: "../includes",
data: "../data",
output: "dist"
output: outputdir
},
// Set template formats so that other files won't be included in dist