diff --git a/.eleventy.js b/.eleventy.js index 88930cb..62cad9d 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -3,7 +3,6 @@ const viteConfig = require('./vite.config.js'); const jsdom = require('jsdom'); const { JSDOM } = jsdom; const util = require('util'); -const { default: vuePlugin } = require('@vitejs/plugin-vue'); const fs = require('fs'); const componentRegistry = { @@ -13,16 +12,12 @@ const componentRegistry = { module.exports = function (eleventyConfig) { eleventyConfig.addPassthroughCopy({ public: '/' }); - eleventyConfig.addPassthroughCopy('node_modules'); eleventyConfig.on( 'eleventy.after', async ({ dir, results, runMode, outputMode }) => { - // Read more below - console.log(results[0].content); results.forEach((result) => { if (result.content) { - console.log(`writing to ${result.outputPath}`); fs.writeFileSync(result.outputPath, transformContent(result.content)); } }); @@ -33,22 +28,15 @@ function tryComponents(doc) { for (const [key, value] of Object.entries(componentRegistry)) { let registeredComponent = key; let registeredComponentPath = value; - console.log(`${registeredComponent} at ${registeredComponentPath}`); let comp = doc.querySelector(registeredComponent); - if (!comp) { - continue; - } + if (!comp) continue; let childTemplate = comp.innerHTML; - - //let props = Object.values(comp.attributes); - let VueWrapper = `