diff --git a/src/meta/js.js b/src/meta/js.js index d1777e35b1..b239ee21fe 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -152,7 +152,17 @@ module.exports = function (Meta) { return file.linkDirs(srcPath, destPath, next); } - file.link(srcPath, destPath, next); + if (process.platform === 'win32') { + fs.readFile(srcPath, function (err, file) { + if (err) { + return next(err); + } + + fs.writeFile(destPath, file, next); + }); + } else { + file.link(srcPath, destPath, next); + } }); }, callback); }