diff --git a/eleventy.config.js b/eleventy.config.js index 29ae4f8..9d67179 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -1,5 +1,6 @@ const { EleventyHtmlBasePlugin, EleventyI18nPlugin } = require("@11ty/eleventy"); const eleventyNavigationPlugin = require("@11ty/eleventy-navigation"); +const bundlerPlugin = require("@11ty/eleventy-plugin-bundle"); const fs = require('fs'); // update this :) @@ -11,6 +12,7 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(EleventyI18nPlugin, { defaultLanguage: "de", }); + eleventyConfig.addPlugin(bundlerPlugin); eleventyConfig.addGlobalData("year", year); diff --git a/package-lock.json b/package-lock.json index d3bb57e..123cc79 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,8 @@ "license": "MIT", "devDependencies": { "@11ty/eleventy": "^2.0.1", - "@11ty/eleventy-navigation": "^0.3.5" + "@11ty/eleventy-navigation": "^0.3.5", + "@11ty/eleventy-plugin-bundle": "^1.0.5" } }, "node_modules/@11ty/dependency-tree": { @@ -121,6 +122,23 @@ "url": "https://opencollective.com/11ty" } }, + "node_modules/@11ty/eleventy-plugin-bundle": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-bundle/-/eleventy-plugin-bundle-1.0.5.tgz", + "integrity": "sha512-Esv97j+mOo/yfxjaWl4j8CyszOBsRjU/DOUWOBqVnnDLM8VDXeus2LTJUxF70nAU0g+z+b6fRn8fKnm6b2a/UQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/11ty" + } + }, "node_modules/@11ty/eleventy-utils": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@11ty/eleventy-utils/-/eleventy-utils-1.0.3.tgz", diff --git a/package.json b/package.json index acf74cb..9469e3f 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "license": "MIT", "devDependencies": { "@11ty/eleventy": "^2.0.1", - "@11ty/eleventy-navigation": "^0.3.5" + "@11ty/eleventy-navigation": "^0.3.5", + "@11ty/eleventy-plugin-bundle": "^1.0.5" } }