mirror of
https://github.com/tabler/tabler.git
synced 2026-08-08 12:22:23 +04:00
Config improvements (#2472)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { appFilters } from "../shared/e11ty/filters.mjs"
|
||||
import { appData } from "../shared/e11ty/data.mjs";
|
||||
import { appConfig } from "../shared/e11ty/config.mjs";
|
||||
import { readFileSync, existsSync } from 'node:fs';
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { join, dirname } from 'node:path';
|
||||
@@ -13,6 +14,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
export default function (eleventyConfig) {
|
||||
const environment = process.env.NODE_ENV || "production";
|
||||
|
||||
appConfig(eleventyConfig);
|
||||
appFilters(eleventyConfig);
|
||||
appData(eleventyConfig);
|
||||
|
||||
@@ -29,11 +31,6 @@ export default function (eleventyConfig) {
|
||||
});
|
||||
|
||||
eleventyConfig.setInputDirectory("content");
|
||||
eleventyConfig.setOutputDirectory("dist");
|
||||
|
||||
eleventyConfig.setLayoutsDirectory("../../shared/layouts");
|
||||
eleventyConfig.setIncludesDirectory("../../shared/includes");
|
||||
eleventyConfig.setDataDirectory("../../shared/data");
|
||||
|
||||
eleventyConfig.amendLibrary('md', () => { });
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "^3.1.2",
|
||||
"@11ty/eleventy": "3.1.0",
|
||||
"@docsearch/css": "^3.9.0",
|
||||
"@docsearch/js": "^3.9.0",
|
||||
"flat-cache": "^6.1.11",
|
||||
|
||||
Reference in New Issue
Block a user