Add and set up Eleventy (11ty)
Right now this just copies over static assets; no processing done :P
This commit is contained in:
parent
e0bad40637
commit
ba1301aeaf
3 changed files with 3114 additions and 24 deletions
13
.eleventy.js
Normal file
13
.eleventy.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
module.exports = function(eleventyConfig) {
|
||||||
|
|
||||||
|
eleventyConfig.addPassthroughCopy('src/*.htm')
|
||||||
|
eleventyConfig.addPassthroughCopy('src/img')
|
||||||
|
|
||||||
|
return {
|
||||||
|
dir: {
|
||||||
|
input: "src",
|
||||||
|
output: "dist",
|
||||||
|
},
|
||||||
|
passthroughFileCopy: true,
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,9 +8,11 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:css": "postcss src/tailwind.css -o dist/tailwind.css",
|
"build:css": "postcss src/tailwind.css -o dist/tailwind.css",
|
||||||
|
"build:html": "eleventy",
|
||||||
"watch": "watch 'npm run build:css' ./src"
|
"watch": "watch 'npm run build:css' ./src"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@11ty/eleventy": "^0.10.0",
|
||||||
"postcss-cli": "^7.1.0"
|
"postcss-cli": "^7.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue