Closed albertorestifo closed 8 years ago
I have the exact same issue.
https://github.com/substack/factor-bundle/blob/master/index.js#L62 factor-bundle will not create intermediate directories for factor output streams.
I encountered the same issue, and worked out a way to make factor-bundle work with gulp more conveniently. See factor-vinylify.
I don't think it should be factor-bundle's job to make directories if they don't exist. Few other programs work that way and it's easy to add a call to fs.mkdir or mkdirp to prep a working directory.
@zoubin, thank you for help! factor-vinylify solves the problem. :+1:
I'm using Factor Bundle as part of a Gulp task, here is the task:
If I create the folders
public/js/pages
andpublic/js/utils
it works fine, but when the folders do not exists I get the following error: