mirror of
https://github.com/Theodor-Springmann-Stiftung/jacoblenz.git
synced 2025-10-28 16:55:33 +00:00
Vorebereitungen zur Veröffentlichung I
This commit is contained in:
@@ -158,6 +158,12 @@ module.exports = function (config) {
|
|||||||
// Set static folder, which copntent will be copied to the output folder
|
// Set static folder, which copntent will be copied to the output folder
|
||||||
config.addPassthroughCopy({ "src/static/": "/static/" });
|
config.addPassthroughCopy({ "src/static/": "/static/" });
|
||||||
|
|
||||||
|
// Output directory
|
||||||
|
var outputdir = "site";
|
||||||
|
if (process.env.ELEVENTY_ENVIRONMENT == "production") {
|
||||||
|
outputdir = "dist";
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// Set custom directories for dynamic pages, data, includes, layouts and finally the generated output
|
// Set custom directories for dynamic pages, data, includes, layouts and finally the generated output
|
||||||
dir:
|
dir:
|
||||||
@@ -166,7 +172,7 @@ module.exports = function (config) {
|
|||||||
layouts: "../layouts",
|
layouts: "../layouts",
|
||||||
includes: "../includes",
|
includes: "../includes",
|
||||||
data: "../data",
|
data: "../data",
|
||||||
output: "dist"
|
output: outputdir
|
||||||
},
|
},
|
||||||
|
|
||||||
// Set template formats so that other files won't be included in dist
|
// Set template formats so that other files won't be included in dist
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -104,4 +104,4 @@ dist
|
|||||||
.tern-port
|
.tern-port
|
||||||
|
|
||||||
# Eleventy output file
|
# Eleventy output file
|
||||||
dist/
|
site/
|
||||||
@@ -3,7 +3,8 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Test project for 11ty",
|
"description": "Test project for 11ty",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "(npx postcss src/static/css/site.css -o src/static/css/output.css; npx @11ty/eleventy)",
|
"prod_build": "npx postcss src/static/css/site.css -o src/static/css/output.css --verbose && ELEVENTY_ENVIRONMENT=production npx @11ty/eleventy",
|
||||||
|
"build": "npx postcss src/static/css/site.css -o src/static/css/output.css && npx @11ty/eleventy",
|
||||||
"watch": "npx @11ty/eleventy --serve",
|
"watch": "npx @11ty/eleventy --serve",
|
||||||
"css_watch": "npx postcss src/static/css/site.css -o src/static/css/output.css -w --verbose"
|
"css_watch": "npx postcss src/static/css/site.css -o src/static/css/output.css -w --verbose"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user