Install WebC plug-in

This commit is contained in:
Helen Chong 2024-04-11 20:16:05 +08:00
parent 58d6c75d67
commit 00f453a00f
3 changed files with 10 additions and 1 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -1,8 +1,15 @@
// Installed Plug-ins
const pluginWebc = require("@11ty/eleventy-plugin-webc");
module.exports = function (eleventyConfig) {
// Copy files
eleventyConfig.addPassthroughCopy("./src/assets/");
eleventyConfig.addWatchTarget("./src/assets/");
eleventyConfig.addPassthroughCopy({ "./src/assets/feed/": "/" });
// Installed Plug-ins
eleventyConfig.addPlugin(pluginWebc);
return {
dir: {
input: "src"

View File

@ -12,6 +12,8 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@11ty/eleventy": "^2.0.1"
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-plugin-webc": "^0.11.2",
"install": "^0.13.0"
}
}