-
…in reply to @eleven_ty
eleven_ty I have a bit of JS that requires some of the global data to be injected (so I define a couple variable and pull in an include); it's captured to a variable,
jsmin
is run on it. All good but on ~80 files it started taking up a lot of time (15% of build time I think?). 1/2 -
…in reply to @ckirknielsen
eleven_ty So now in the
before
event, I compile that JS with the relevant data and a reduced config file, so I get a file I can include that is already minified (once!) and it gets included with no additional processing. So the jsmin filter runs once, no 80, which save time(-ish)! 2/2 -
…in reply to @ckirknielsen
eleven_ty Is this bonkers? 😅 I didn't really look if there was a way to build certain files before the usual build.