G
G
goodw842016-01-10 02:55:05
JavaScript
goodw84, 2016-01-10 02:55:05

Why doesn't the ignore option in bower.json work?

1. I want to ignore all unnecessary files in the packages. For example, jquery contains a src folder, which I don't need:
2. I specify the folder and its contents in bower.json:

"ignore": [
"bower_components/jquery/src/*.*",
"bower_components/jquery/src"
]

I do:
bower uninstall jquery
bower cashe clean
bower install

The src folder still shows up. Tried to experiment with separate files, nothing is ignored.
What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2016-01-10
@goodw84

A list of files for Bower to ignore when installing your package.

https://github.com/bower/spec/blob/master/json.md
What do they interfere with? Package developers decide what to include in it. You cannot influence this, bower will download everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question