Menu icon Foundation
Can we still custom the javascript selection with Foundation 6.4?

I used to custom config.yml, commenting the files/plugins I didn't need. That I could make app.js smaller.

Is it still possible to do something similar with Foundation 6.4?

config.ymljavascriptfoundation 6.4

I used to custom config.yml, commenting the files/plugins I didn't need. That I could make app.js smaller.

Is it still possible to do something similar with Foundation 6.4?

Bryce Kirk about 2 years ago

*Bump*

Michal Pandyra about 2 years ago

Yes it is!

Individual Webpack modules for each of the Foundation JavaScript plugins can be enabled and disabled. The instructions are provided in the "app.js" file.

Line 6 imports the entire suite of Foundation modules. Per the instructions on lines 7-9, you can comment out line 6 and uncomment line 9.

Then, open the referenced file (./lib/foundation-explicit-pieces) where you can comment out the individual components and plug-ins that you don't need.