chore: fix webpack config

This commit is contained in:
Sarah Vaupel 2022-04-21 15:12:36 +02:00
parent 87384ebb30
commit 9ea564b707

View File

@ -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
}),