Open dcrockwell opened 8 years ago
stimpak
.test
.render("**/*", `${__dirname}/templates`)
.alter((stim, file, callback) => {
file.contents = new Buffer("NEW Content!");
callback(null, file);
});
Also see this: https://github.com/FreeAllMedia/stimpak/issues/19
I'm leaning towards changing .transform
to .filter
and adding .transform
as the file changing method
This would force
0.2.0
as it would break any integrations currently using.transform
.To avoid this, we could add
.transformFile
or.alter