Gobble plugin to hard-link files.
Hard links are somewhat similar to symlinks, in the sense that both operations make a link of a filename into another filename, which looks like a copy, but without using storage space for the file again.
The benefit of symlinks is that one can what is a real file and what is a link. With hard links, both the original file and the hardlink look exactly the same.
This makes hard links useful in situations where resolving file paths of symlinks confuse the build process. Hard-linking a Gobble merge node will make that node look like a set of real files, allowing to resolve relative paths within that set of files.
I assume you already know the basics of Gobble.
npm i -D gobble-hardlink
In your gobblefile
, run the hardlink
gobble transform, like so:
var gobble = require( 'gobble' );
var files = gobble([gobble('src'), gobble('css')]);
var hardlinked = files.transform('hardlink');
This Gobble plugin takes no options.
"THE BEER-WARE LICENSE":
<[email protected]> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.