Closed Dukeskes closed 7 years ago
hi @Dukeskes, I will take a look as soon as possible.
hi @Dukeskes. So, with this code:
compiledFiles.push(new gutil.File({
base: path.join(__dirname, locale),
contents: new Buffer(pug.compileFile(file.path, options)(options.data)),
path: path.join(options.i18n.dest, dest)
}));
your code works? I've checked with my current tests too, and I think the cwd
option can be removed.
I have probably same problem. It currently works like this, at least for me:
compiledFiles.push(new gutil.File({
base: path.join(__dirname, locale),
cwd: __dirname,
contents: new Buffer(pug.compileFile(file.path, options)(options.data)),
path: path.join(path.join(__dirname,options.i18n.dest), dest)
}));
@Dukeskes do you still have problems with the plugin?
When i deleted cwd options, everything gone well, as i wrote in my first message :)
Ok, in this case I will release a new version with the update
@Dukeskes @ursereg I´ve released version 1.0.1
My working gulp task
Something is wrong in your:
While im leaving base, and cwd path commented, the path in properties are working properly, but when im leaving your code not touched i have to add 3 fake folder because it going to 3 locations up
<File "../../../html/en/index.html" <Buffer 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 3e 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 3c 6d 65 74 61 20 63 68 61 72 73 65 74 3d 22 75 74 66 2d 38 22 3e 3c ... >>
So probably your path is broken
base: path.join(__dirname, locale), cwd: __dirname,