Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
henrycatalinismith committed Jul 28, 2024
1 parent 24fe93d commit a940c38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
const pwa = require("eleventy-plugin-pwa")
const fs = require("fs")
import fs from "fs"

module.exports = function(eleventyConfig) {
export default function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("_headers")
eleventyConfig.addPassthroughCopy("images/*.png")
eleventyConfig.addPassthroughCopy("manifest.webmanifest")
eleventyConfig.addPassthroughCopy("videos")

eleventyConfig.addPlugin(pwa, {
swDest: "./_site/sw.js",
})

eleventyConfig.on(
"afterBuild",
function() {
fs.copyFileSync(
"./index.html",
"./_site/index.html",
"./tailbone.html",
"./_site/tailbone.html",
)
fs.mkdirSync("./_site/disk2")
fs.mkdirSync("./_sitedisk2")
fs.copyFileSync(
"./disk2/index.html",
"./_site/disk2/index.html",
Expand Down
2 changes: 1 addition & 1 deletion .eleventyignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
index.html
tailbone.html
disk2/index.html

0 comments on commit a940c38

Please sign in to comment.