Add paths to configuration

This commit is contained in:
Christoph Hagen
2022-09-05 16:08:06 +02:00
parent cfb68f5237
commit 28623d1209
2 changed files with 23 additions and 11 deletions

View File

@ -5,4 +5,16 @@ struct Configuration {
let pageImageWidth: Int
let minifyCSSandJS: Bool
let contentPath: String
let outputPath: String
var contentDirectory: URL {
.init(fileURLWithPath: contentPath)
}
var outputDirectory: URL {
.init(fileURLWithPath: outputPath)
}
}