Fix Favicon with favicon-webpack-plugin
This commit is contained in:
+13
-1
@@ -1,8 +1,20 @@
|
||||
const FaviconsWebpackPlugin = require("favicons-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
target: "serverless",
|
||||
experimental: {
|
||||
jsconfigPaths: true
|
||||
},
|
||||
env: {
|
||||
env: {},
|
||||
webpack: (config) => {
|
||||
config.plugins.push(
|
||||
new FaviconsWebpackPlugin({
|
||||
logo: "./public/favicon.png",
|
||||
outputPath: "../public/favicons",
|
||||
prefix: "/favicons",
|
||||
inject: false
|
||||
})
|
||||
);
|
||||
return config;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user