Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Foundation 6: how to include static css from package manager?

I'm loading a third party jquery plugin into foundation 6 via bower or npm.

I've included the javascript in config.yml, which works fine:

javascript:

   [...]
   - "bower_components/path/to/thirdpartyplugin.js"

But such plugins also bring basic css files I'd rather not copy, but include directly.

So where and how do I include them in order to be compiled (bundled) into app.css? Also, many plugins bring assets like an .svg or some .png – how do I get the compiler to copy them to the right location in dist?

like image 295
Urs Avatar asked Oct 30 '22 17:10

Urs


1 Answers

I guess this is not possible with the current foundation workflow. A solution would be to write an own gulp task that copies all assets from the components to /src/ and then compile them.

PS: Here's the workflow recommended by ZURB, http://zurb.com/university/lessons/adding-on-to-a-great-foundation – so also, copy-paste.

like image 135
Urs Avatar answered Nov 16 '22 14:11

Urs