Initial Config of components

- eleventy
- tailwindcss
- postcss
- webpack
This commit is contained in:
Philipp Klüter
2021-09-15 08:00:11 +02:00
parent 61bf73dc36
commit bad5d0302a
7 changed files with 87 additions and 0 deletions

23
.eleventy.js Normal file
View File

@@ -0,0 +1,23 @@
const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
module.exports = (config) => {
config.addPlugin(syntaxHighlight);
config.addPassthroughCopy({ 'src/assets': 'assets' });
config.setFrontMatterParsingOptions({
excerpt: true,
excerpt_sperator: ' <!-- excerpt -->',
});
config.setTemplateFormats(['jpg', 'png', 'webp', 'md', 'njk']);
config.setBrowserSyncConfig({
files: ['dist/**/*'],
open: true,
});
config.setDataDeepMerge(true);
return {
dir: {
input: 'src',
output: 'dist',
},
};
};