optimization - Jekyll compiling seems WAY too slow -
i'm building site jekyll first time. i'm loving far; problem exceedingly long build times. right now, when run jekyll build
, takes 30 seconds generate site.
30 seconds might not seem lot, @ moment, the entire site has 1 post, 8 includes, 8 layouts, , 2 small plugins. haven't abused liquid tags knowledge, , if remove plugins, still takes long.
when searching answer, can find people have huge blogs hundreds of posts. since have 1 post, that's not issue - there's else going on here make take long.
here site's github repository: https://github.com/keithpickering/kpd/
my questions follows:
what possible reasons jekyll building when doesn't have build?
if jekyll inherently slow, there simple way compile css , js separately, leaving jekyll deal markup? right have jekyll ignore "css" , "js" folders, instead having grunt minify, prefix, , compile files automatically. i've never used grunt before have no idea if sort of absurdly hacky solution i'm using.
thanks help!
edit: should've mentioned sooner, i'm on windows 8.1 x64. i'm beginning think jekyll has shaky support windows.
i ran similar problem, luckily found reason , solution:
my jekyll setup wasn't using plugins, no complicated liquid tags, contained 3 sample posts , nothing else. building site still took 6 seconds on average.
only when removed everthing in directory step step found out causing long build times: node_modules
folder.
you can exclude node_modules
directory jekyll conversion putting following in _config.yml
:
exclude: [node_modules]
or:
exclude: - node_modules
more information exclude
can found in jekyll documentation.
Comments
Post a Comment