rapidpro / chpro-microsite

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Only load the Foundation partials we need #36

Open sodevious opened 6 years ago

sodevious commented 6 years ago

My apologies if this is something already on your radar (probably is).

Towards the end of the project, we should make sure to create a manifest file that will only include the Foundation bits we are using and need to include, to avoid deploying unused CSS.

https://foundation.zurb.com/sites/docs/sass.html#adjusting-css-output

mtrythall commented 6 years ago

Moving comments from Slack. This is a great suggestion and I'm glad you noted it.

Typically during build, we include everything and then we slim it all down when we're done. We're using very little of Foundation ATM, but in the coming weeks, we'll need to clean up our list for sure. I just took a shortcut and did the one-liner to get us up and running.

Feel free to champion this and get us a clear set of config and import files. We'll comment out what we don't need at the end.

sodevious commented 6 years ago

Dropping a reminder when we implement this that we should do the same with the Foundation JS.

mtrythall commented 6 years ago

@sodevious I think we're at a point where you can run with this one now.