Skip to content

Commit cc1037b

Browse files
author
zhe-he
committed
add favicon and apple-touch-icon-precomposed
1 parent f9bd8a8 commit cc1037b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

build/webpack.dev.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = merge(baseWebpackConfig, {
2828
new HtmlWebpackPlugin({
2929
filename: 'index.html',
3030
template: 'index.html',
31+
favicon: 'favicon.ico',
3132
inject: true
3233
}),
3334
new FriendlyErrorsPlugin()

build/webpack.prod.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ var webpackConfig = merge(baseWebpackConfig, {
5454
: config.build.index,
5555
template: 'index.html',
5656
inject: true,
57+
favicon: 'favicon.ico',
5758
minify: {
5859
removeComments: true,
5960
collapseWhitespace: true,

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<head>
55
<title>基于Vue2.0仿微信应用</title>
66
<meta charset="utf-8">
7-
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
87
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
8+
<link href="https://sinacloud.net/vue-wechat/images/headers/header01.png" rel="apple-touch-icon-precomposed">
99
<script src="https://sinacloud.net/vue-wechat/js/qrcode.min.js">
1010
</script>
1111
</head>

0 commit comments

Comments
 (0)