Closed doug closed 10 years ago
@robwierzbowski Would gulp-intermediate work for this plugin?
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.
Agreed. This seems like a nice temporary workaround :)
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.