Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way for a folder to be included in the production build but not have jekyll compile it?

I think the best example for this would an images/ folder or node_modules/ for images & dependencies to be included in the final build without taking a really long time to compile.

edit:

sorry for not specifying but I'm well aware of keep_files and exclude and both don't help with my situation.

exclude excludes the folder and files from the compiling and site build and would require additional pipelining tools to move them manually each time.

keep_files requires the files to exist in the final build in the first place, which is not possible for some production environment (GitHub's gh-pages etc. etc.)

like image 970
Lukas Chen Avatar asked Oct 08 '18 12:10

Lukas Chen


1 Answers

You might wanna check this out: Excluding a directory from Jekyll watch

P.S.: Always explore stack overflow before posting a question; yours could be a duplicate or answered before. You get downvoted otherwise.

like image 87
Aaditya Maheshwari Avatar answered Nov 15 '22 00:11

Aaditya Maheshwari