Closed rs3d closed 7 years ago
Hi, please, provide your version of fuse-box.
fuse-box 2.1.0 fusebox-gulp-plugin 1.0.4 node 6.11.0 (win)
Suspicious code:
if (file.relativePath.substr(-4) !== 'html') {
return;
}
You return undefined here, but you must return vinyl stream. If you want to filter files, you need do it by another way.
Yes, you're right!
I've visited the docs again and saw that I can already filter by extension (sorry!)
Working code
const fuse = FuseBox.init({
homeDir: "app",
output: "bin-assets/scripts/$name.js",
log: true,
debug: true,
tsConfig: "tsconfig.json",
plugins: [
[".html",
GulpPlugin([
(file) => {
return g.translate(translatePluginConfig).import({
missingContentHandling: 'warn',
importFilePath: `translation.json`
});
}
])],
HTMLPlugin()
]
});
Hi,
I try to use https://github.com/thomas-darling/gulp-translate like this:
... and get following error message after the last html file: