1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-28 00:44:30 +07:00

feat: custom favicon

This commit is contained in:
Meeeeow 2020-04-28 23:41:17 +08:00
parent 730c3471c2
commit 9e91d64513
2 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<title> <title>
<%= htmlWebpackPlugin.options.title %> <%= htmlWebpackPlugin.options.title %>
</title> </title>
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.verdaccioURL %>/-/static/favicon.ico" /> <link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.verdaccioURL %>/-/mapped/favicon" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<script> <script>
window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('<%= htmlWebpackPlugin.options.__UI_OPTIONS %>'); window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('<%= htmlWebpackPlugin.options.__UI_OPTIONS %>');

View File

@ -49,7 +49,6 @@ const prodConf = {
logo: 'ToReplaceByLogo', logo: 'ToReplaceByLogo',
primary_color: 'ToReplaceByPrimaryColor', primary_color: 'ToReplaceByPrimaryColor',
filename: 'index.html', filename: 'index.html',
favicon: `${env.SRC_ROOT}/template/favicon.ico`,
verdaccioURL: 'ToReplaceByVerdaccio', verdaccioURL: 'ToReplaceByVerdaccio',
version_app: 'ToReplaceByVersion', version_app: 'ToReplaceByVersion',
template: `${env.SRC_ROOT}/template/index.html`, template: `${env.SRC_ROOT}/template/index.html`,