Basics 6: how to enable static css from package manager?

I load a third party jQuery plugin into base 6 through bower or npm.

I have included javascript in config.yml , which works fine:

JavaScript:

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

But such plugins also bring basic css files, which I would probably not copy, but include directly.

So, where and how to enable them for compilation (included) in app.css ? In addition, many plugins bring assets such as .svg or some .png - how can I get the compiler to copy them to the right place in dist ?

+5
source share
1 answer

I think this is not possible in the current workflow. The solution would be to write your own gulp task, which copies all the assets from the components to / src / and then compiles them.

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

+2
source

Source: https://habr.com/ru/post/1259002/


All Articles