At the end of my last post about Grunt I mentioned that I will be adding code to concatenate the javascript, compress the images and also tidy the code up abit. I have now done this ….
Javascript I moved all of the javascript to a folder called _js and then set up the following ….
More Grunt & Jekyll 1/7 j s s ‘ ] d } : r _ , e c j s { : s t / : [ j q ‘ u j e s r / y m . a m i i n n . . j j s s ’ ’ , ‘ _ j s / j q u e r y . p l u g i n . m i n . j s ’ , ‘ j s / b o o t s t r a p . m i n . j s ’ , ‘ _ j s / j q u e r y . f l e x s l i d e r - m i n . j s ’ , ‘ _ j s / s m o o t h - s c r o l l . m i n . j s ’ , ’ _ j s / s k r o l l r . m i n . j s ’ , ‘ _ j s / t w i t t e r F e t c h e r _ v 1 0 _ m i n . j s ’ , ‘ _ j s / s p e c t r a g r a m . m i n . j s ’ , ‘ _ j s / s c r o l l R e v e a l . m i n . j s ’ , ‘ _ j s / i s o t o p e . m i n . j s ’ , ‘ _ j s / l i g h t b o x . m i n . j s ’ , ‘ _ j s / j q u e r y . c o u n t d o w n . m i n . j s ’ , ‘ _ j s / s c r i p t s . j s ’ As you can see I am having to merge the javascript in a certain order, I tried using src: [‘_js/*’] but this broke a lot of the site.
...