Closed franleplant closed 10 years ago
+1 or at least provide an option in the bower.json to set the output file name (though not sure what to do if the package includes more files). But I think for 99% of cases the basename
behavior proposed will do.
-1
If two or more packages have the same main file(s) defined (e.g. main: "./index.js"
) it will result in a conflict.
There is a good plugin to "fix" this issue: gulp-flatten.
Hi @ck86! Thanks for that plugin!
I think that this issue is dead!
Fran
Perfect, thanks for the tip!
Hi!
When I run
I get in
./dist
directory something like thisI had to apply this home made
normalize
functionNormalize
to get this running properly and getting this final result
As you can see the Vinyl files that you are sending over the stream have an issue with the
file.base
attribute.Let
file.path
be/path/to/src/file.js
And
file.base
is currently something like this/path/to
So
file.relative
(or something likefile.path - file.base
) is something likesrc/file.js
Which leads us the this unwanted behavior.