Skip to content

Commit

Permalink
fix: revert to old passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored and snitin315 committed Feb 19, 2023
1 parent 9fb0852 commit c5bf2fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions docs/.eleventy.js
Expand Up @@ -325,9 +325,7 @@ module.exports = function(eleventyConfig) {
</div>`);


eleventyConfig.addWatchTarget("./src/assets/fonts/");
eleventyConfig.addWatchTarget("./src/assets/images/");
eleventyConfig.addWatchTarget("./src/assets/js/");
eleventyConfig.addWatchTarget("./src/assets/");

//------------------------------------------------------------------------------
// File PassThroughs
Expand All @@ -337,9 +335,7 @@ module.exports = function(eleventyConfig) {
"./src/static": "/"
});

eleventyConfig.addPassthroughCopy("./src/assets/fonts/");
eleventyConfig.addPassthroughCopy("./src/assets/images/");
eleventyConfig.addPassthroughCopy("./src/assets/js/");
eleventyConfig.addPassthroughCopy("./src/assets/");

eleventyConfig.addPassthroughCopy({
"./src/content/**/*.png": "/assets/images"
Expand Down Expand Up @@ -457,8 +453,7 @@ module.exports = function(eleventyConfig) {
req.url += ".html";
}
return next();
},
files: "./_site/css/**/*.css"
}
});

/*
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Expand Up @@ -10,10 +10,10 @@
"files": [],
"scripts": {
"images": "imagemin '_site/assets/images' --out-dir='_site/assets/images'",
"watch:postcss": "postcss src/assets/css -d _site/assets/css --watch --poll",
"watch:postcss": "postcss src/assets/css -d src/assets/css --watch --poll",
"watch:sass": "sass --watch --poll src/assets/scss:src/assets/css --no-source-map",
"watch:eleventy": "eleventy --serve --port=2023",
"build:postcss": "postcss src/assets/css -d _site/assets/css",
"build:postcss": "postcss src/assets/css -d src/assets/css",
"build:sass": "sass src/assets/scss:src/assets/css --no-source-map",
"build:eleventy": "npx @11ty/eleventy",
"start": "npm-run-all build:sass build:postcss --parallel watch:*",
Expand Down

0 comments on commit c5bf2fa

Please sign in to comment.