Skip to content

Commit f00337a

Browse files
committed
get 2 step compilation working + go from 2-4 space tabs
1 parent 3fe28c6 commit f00337a

File tree

17 files changed

+1650
-3847
lines changed

17 files changed

+1650
-3847
lines changed

.eleventyignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
_site/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
_site/
33
.DS_Store
4+
src/lib/*.js

eleventy.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import * as esbuild from "esbuild";
22

33
export default function (eleventyConfig) {
4+
// Ignore .gitignore and use .eleventyignore instead
5+
eleventyConfig.setUseGitIgnore(false);
6+
47
// Static resources.
58
eleventyConfig.addPassthroughCopy("src/style.css");
69

@@ -12,8 +15,8 @@ export default function (eleventyConfig) {
1215
compile: async (inputContent, inputPath) => {
1316
return async (data) => {
1417
let { code } = await esbuild.transform(inputContent, {
15-
loader: "ts",
16-
minify: process.env.NODE_ENV === "production",
18+
loader: "ts",
19+
minify: process.env.NODE_ENV === "production",
1720
});
1821
return code;
1922
};

0 commit comments

Comments
 (0)