Generate webpack favicons from PNG
https://github.com/jantimon/favicons-webpack-plugin/issues/288 indicates that generating from an SVG sometimes freezes at 92%. This behaviour is seen on Windows wallet builds in CI.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
@@ -32,7 +32,7 @@ Shared Typescript config is in [tsconfig.json](./tsconfig.json), with specific p
|
|||||||
|
|
||||||
Inherit config for Webpack 5 with additional tweaks including:
|
Inherit config for Webpack 5 with additional tweaks including:
|
||||||
|
|
||||||
- favicon generation from [SVG favicon asset files](../../assets/favicon/favicon.svg)
|
- favicon generation from [favicon asset files](../../assets/favicon/favicon.png)
|
||||||
- asset handling (svg, png, fonts, css, etc)
|
- asset handling (svg, png, fonts, css, etc)
|
||||||
- minification
|
- minification
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ module.exports = (baseDir, htmlPath) => ({
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
new WebpackFavicons({
|
new WebpackFavicons({
|
||||||
src: path.resolve(__dirname, '../../assets/favicon/favicon.svg'), // the asset directory is relative to THIS file
|
src: path.resolve(__dirname, '../../assets/favicon/favicon.png'), // the asset directory is relative to THIS file
|
||||||
}),
|
}),
|
||||||
|
|
||||||
new Dotenv(),
|
new Dotenv(),
|
||||||
|
|||||||
Reference in New Issue
Block a user