Skip to content

Commit

Permalink
Add favicon to doc site
Browse files Browse the repository at this point in the history
  • Loading branch information
e1emeb0t authored and sam019 committed Nov 23, 2017
1 parent e1a9989 commit 5cfd444
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions build/site/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ module.exports = {
filename: '[chunkhash:12].js'
},
plugins: [
new ExtractTextPlugin({ filename: '[chunkhash:12].css' }),
new HtmlWebpackPlugin({ template: './index.html' })
new ExtractTextPlugin({
filename: '[chunkhash:12].css'
}),
new HtmlWebpackPlugin({
template: './index.html',
favicon: path.join(basePath, 'site/assets/favicon.ico')
})
].concat(process.env.TRAVIS_CI ? [] : [
new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production') }),
new webpack.optimize.ModuleConcatenationPlugin(),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-react",
"version": "1.4.3",
"version": "1.4.4",
"description": "Element UI for React",
"private": false,
"main": "dist/npm/es5/index.js",
Expand Down
Binary file added site/assets/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>Element-React</title>
<link rel="shortcut icon" href="assets/favicon.ico">
<script src="bundle.js" type="text/javascript" defer></script>
</head>
<body>
Expand Down

0 comments on commit 5cfd444

Please sign in to comment.