Skip to content

Commit 8cafab8

Browse files
committed
change: .eleventy.js — isDevelopment check for copying js
1 parent d7353cd commit 8cafab8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.eleventy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ export default function (eleventyConfig) {
6868
"src/robots.txt": "robots.txt"
6969
})
7070

71+
if (isDevelopment) {
72+
eleventyConfig.addPassthroughCopy({
73+
"src/assets/js": "js",
74+
})
75+
}
76+
7177
eleventyConfig.addFilter("postDate", (dateObj) => {
7278
if (typeof dateObj !== "object") dateObj = new Date(dateObj)
7379
return DateTime.fromJSDate(dateObj).toLocaleString(DateTime.DATE_MED)

0 commit comments

Comments
 (0)