Initial Config of components
- eleventy - tailwindcss - postcss - webpack
This commit is contained in:
23
.eleventy.js
Normal file
23
.eleventy.js
Normal 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',
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user