eleventy-plugin-wcc
Version:
An Eleventy plugin for rendering Web Components with WCC.
17 lines (15 loc) • 362 B
JavaScript
const path = require('path');
const { pathToFileURL } = require('url');
const wccPlugin = require('./src/index');
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(wccPlugin, {
definitions: [
pathToFileURL(path.join(__dirname, './demo/components/greeting.js'))
]
});
return {
dir: {
input: './demo'
}
}
};