Menu icon Foundation
Yeti - Production

Hi,

I've set up an Advanced template with Yeti and was able to create production ready output by editing the gulp file:

var isProduction = true;

works great. One question that remains for me is how do I exclude js components I don't want to use. I noticed in the compressed app.js file after running it through production, there is still reference to various components I didn't use on my page.

Thanks,
Dan

production

Hi,

I've set up an Advanced template with Yeti and was able to create production ready output by editing the gulp file:

var isProduction = true;

works great. One question that remains for me is how do I exclude js components I don't want to use. I noticed in the compressed app.js file after running it through production, there is still reference to various components I didn't use on my page.

Thanks,
Dan

Rafi Benkual over 3 years ago

Customizing the JS files through a build process is not as straight forward as the Sass.

- There is a file called config.yml. Here you can remove unused components in your Foundation project.

- You can use the use the customizer to generate the JS you need and swap in the file:

http://foundation.zurb.com/sites/download.html/

- You can also use a CDN to bundle up only the modules you need:

https://www.jsdelivr.com/projects/foundation

 

Dan over 3 years ago

Hi Rafi,

 

Thanks, I'll give those methods a try. Cheers.