-
-
Notifications
You must be signed in to change notification settings - Fork 25
output paths should be relative to source paths #12
Comments
// @ragingwind |
@sindresorhus I think, It would be good if dest option will be removed. We can use gulp.dest instead of. also gulp.rename |
@ragingwind The Line 28 in 5e83292
|
options.output would be ignored while file writing If outputSrc(outputHandler) was passed. (they have changed the name to outputHandler). we don't have to pass |
Oh, I thought I guess we should also change // @azakus In case we're missing something. |
ok. I'll make a new PR for this. |
@sindresorhus @azakus Sorry. I have misunderstood, output option must be passed to vulcanize that used to calculated relative paths in vulcanized html. I had concerned a path of vulcanized html's path. To some extent, user should be passed vulcanize options If it seems to be not gulp way. And I'll push a PR this issue with grunt-vulcanize test fixtures. please review that. |
I was curious to see why gulp-vulcanize even needed to write anything to the filesystem (as opposed to just using vynyl). I went ahead and refactored the plugin to do this -- it has the added benefit of fixing this bug, and doesn't leave behind unecessary dot-files. I'm not sure whether or not this breaks any features, but it seems to work for my use cases. https://github.com/bendavis78/gulp-vulcanize/blob/refactor/index.js |
@bendavis78 Did you remove that bendavis78@f3d1f36#diff-168726dbe96b3ce427e7fedce31bb0bcL28 with unused modules? Yes It's almost same with my version. My concern is that in case of vulcanize couldn't calculate relative path correctly if in your case(or cases that doesn't need to changed). have no problems(maybe).
but we have to consider abspath(maybe) option and the all of other cases see below. If we don't pass output path it would be not generated script src path correctly. vulcanize try to calculate relative path by `/fixtures/vulcanized.html'
|
@ragingwind, I'm confused -- are we talking about grunt or gulp? |
Sorry, I was just looking at your link and got confused. I think I see what you mean by the relative path not being considered in my version. Perhaps vulcanize needs a patch to allow for this option while still allowing the use of buffers only. I may dig into vulcanize a little more to see what's possible. |
@bendavis78 absolutely gulp. What point is that makes you confuse? To give you an idea. I use a testcase of |
Because Vulcanize only recently supported string in/out. |
Fixed by 2179cef |
Take this directory structure for example:
When you have a task like this:
It puts all output files under the build directory, instead of in their respective folders:
The text was updated successfully, but these errors were encountered: