Fix HTML copy file generation (#223)

This commit is contained in:
Christine Abernathy 2017-11-10 15:46:22 -08:00 committed by Joel Marcey
parent 522e59d739
commit 1d3f71a60a

View file

@ -465,7 +465,9 @@ function execute() {
// copy html files in 'en' to base level as well
files = glob.sync(CWD + "/build/" + siteConfig.projectName + "/en/**");
files.forEach(file => {
let targetFile = file.replace("en/", "");
let targetFile = file.replace(
CWD + "/build/" + siteConfig.projectName + "/en/",
CWD + "/build/" + siteConfig.projectName + "/");
if (file.match(/\.html$/)) {
fs.copySync(file, targetFile);
}