We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b45e7e commit 197b7b1Copy full SHA for 197b7b1
1 file changed
src/webpack.config.common.js
@@ -4,6 +4,7 @@ const history = require("connect-history-api-fallback");
4
const highlight = require("rehype-highlight");
5
const emoji = require("remark-emoji");
6
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
7
+const fs = require("fs");
8
const commonPaths = require("./paths");
9
10
module.exports = {
@@ -79,6 +80,8 @@ module.exports = {
79
80
},
81
plugins: [
82
new webpack.ProgressPlugin(),
- new FaviconsWebpackPlugin(commonPaths.faviconPath),
83
- ],
+ fs.existsSync(commonPaths.faviconPath)
84
+ ? new FaviconsWebpackPlugin(commonPaths.faviconPath)
85
+ : null,
86
+ ].filter(e => e),
87
};
0 commit comments