ck86 / main-bower-files

Getting all main bower files
583 stars 56 forks source link

override makes ignore filter command fail #158

Open octavioamu opened 8 years ago

octavioamu commented 8 years ago

I had a override in bower.json like this:

"bootstrap-sass": {
      "main": [
        "assets/stylesheets/_bootstrap.scss"
      ]
    }

And then in gulp configuration I am using the filter to ignore that file like this

.pipe(inject(gulp.src(bowerFiles({filter:['**/*.{scss,sass}', '!/bootstrap-sass/assets/stylesheets/']}), {read: false}), {

but looks like the override is "stronger" than the gulp configuration and the file is not beeing ignore and then injected anyway.

The only solution I found is to comment the line inside main in bower.json, but is a very bad solution.

here is more info if needed https://github.com/jhipster/generator-jhipster/issues/4331