question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vfs.dest(outfolder, { base.. }) ignores outfolder?

See original GitHub issue

When dest has a base option, it ignores outfolder, right? Looks like that from the code.

If yes, then maybe let people specify empty outfolder?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
phatedcommented, May 6, 2016

Thinking through this some more with @stevelacy, the only example I can come up with where the base option on .dest() would be used would be with liberal globs in .src() like:

// src = './client/**/*.sass'
vfs.dest('./dest/styles/');
// => /home/user/project/dest/styles/sass/file.sass
// => /home/user/project/dest/styles/sass/partials/other-file.sass

// src = './client/**/*.css'
vfs.dest('./dest/styles/', {
  base: './sass'
});
// => /home/user/project/dest/styles/file.css
// => /home/user/project/dest/styles/partials/other-file.css

However, it seems that this can be solved by using the base option in the .src() method instead of the .dest() method. I think this option can be removed.

0reactions
phatedcommented, Apr 27, 2016

@tmcgee123 I don’t think my last comment was correct. I’m not sure what the “correct” behavior would be. Any thoughts? @contra @iliakan

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ | vfsglobal
What is the 20 days Policy of Return of incomplete documents after 20 days? Incomplete application: If the application is not completed within...
Read more >
VFS Global - Wikipedia
VFS Global, formerly known as "Visa Facilitation Services Global" is an outsourcing and technology services company for governments and diplomatic missions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found