sindresorhus / gulp-vulcanize

Concatenate a set of Web Components into one file
MIT License
100 stars 25 forks source link

Allow gulp-vulcanize to work with an inputstream #5

Closed doug closed 10 years ago

doug commented 10 years ago

I gulp-prefix something (platform.js) to the file I want vulcanized. I know this is a hack until vulcanize supports setting your own streams upstream, but it helps in the meantime make gulp-vulcanize behave more like you expect.

sindresorhus commented 10 years ago

@robwierzbowski Would gulp-intermediate work for this plugin?

doug commented 10 years ago

I don't think gulp-intermediate would work in this case because that requires writing the files to a different location and vulcanize needs all of the relative paths. For example, often with a polymer element the bower components it needs to import are (../) up a directory. All of the files would need to be copied to the temp directory instead of just writing and deleting one file in the same directory. It would be possible to write it with gulp-intermediate, but I think it would be overly complicated and take longer to execute.

sindresorhus commented 10 years ago

Agreed. This seems like a nice temporary workaround :)