diff --git a/webpack.config.js b/webpack.config.js index ffe72cac7..01944a774 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -222,13 +222,13 @@ async function webpackConfig() { }) ]; } else { - const tmpobj = tmp.fileSync({ dir: ".", postfix: ".json" }); + const tmpobj = tmp.fileSync({ postfix: ".json" }); fs.writeSync(tmpobj.fd, JSON.stringify(faviconConfig)); fs.close(tmpobj.fd); return [ new RealFaviconPlugin({ - faviconJson: `./${tmpobj.name}`, + faviconJson: path.relative(".", tmpobj.name), outputPath: path.resolve(__dirname, 'well-known', lang), inject: false }),