Upgrade 11ty to v3

This commit is contained in:
Chocobo1 2024-11-18 16:58:12 +08:00
parent 0be9ae9e97
commit 690a3ce710
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
const ChildProcess = require('node:child_process');
const MarkdownItAnchor = require("markdown-it-anchor");
import ChildProcess from "node:child_process";
import MarkdownItAnchor from "markdown-it-anchor";
module.exports = (eleventyConfig) => {
export default (eleventyConfig) => {
const sourceDir = "src";
// Copy folders as-is
@ -38,4 +38,4 @@ module.exports = (eleventyConfig) => {
input: sourceDir
}
};
};
}

View File

@ -12,8 +12,9 @@
"lint": "eslint src/scripts/**.js && stylelint **/*.css",
"serve": "eleventy --serve"
},
"type": "module",
"devDependencies": {
"@11ty/eleventy": "2",
"@11ty/eleventy": "3",
"@stylistic/eslint-plugin": "*",
"eslint": "*",
"eslint-plugin-html": "*",