angular-owl-carousel icon indicating copy to clipboard operation
angular-owl-carousel copied to clipboard

Missing automatic bower includes - grunt serve

Open adskiremote opened this issue 9 years ago • 1 comments

Hi,

I found that running grunt serve didn't include all the js and css files necessary.

So I created a bower.json file.

As follows...

{ "name": "owlcarousel", "main": ["owl-carousel/owl.carousel.js", "owl-carousel/owl.carousel.css", "owl-carousel/owl.theme.css"], "license": "MIT", "ignore": [ "package.json" ], "keywords": [ "owlcarousel", "javascript", "browser", "library" ] }

adskiremote avatar Feb 02 '16 17:02 adskiremote

Don't create a bower.json file for the package, it's the wrong way to do this. You should add this to your own bower.json, to point to the main files of the package. You won't need this when the package bower.json is updated with the "main" entry.

"overrides": { [...] "owlcarousel": { "main": [ "owl-carousel/owl.carousel.js", "owl-carousel/owl.carousel.css", "owl-carousel/owl.transitions.css", "owl-carousel/owl.theme.css" ] } },

In this way you are overriding package bower.json indications about the main files, and providing them yourself.

vtombesi avatar May 26 '16 13:05 vtombesi