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
?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With