main-bower-files
main-bower-files copied to clipboard
override makes ignore filter command fail
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