提交 2e756930 编写于 作者: N Nicky Chan 提交者: daminglu

fix Favicon not show up (#488)

上级 1222e5d0
......@@ -5,7 +5,7 @@
<title>Visual DL</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="shortcut icon" type="image/png" href="/static/favicon.png" />
<link rel="shortcut icon" type="image/png" href="favicon.png" />
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet">
<script type="text/javascript" src="https://dagrejs.github.io/project/dagre-d3/latest/dagre-d3.min.js"></script>
</head>
......
......@@ -7,6 +7,7 @@ const argv = require('yargs').argv;
const isDev = process.env.NODE_ENV === 'dev';
const entry = require('./entry');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
function getLoaders(isDev, ext) {
let arr = ['css-loader'];
......@@ -122,7 +123,8 @@ const config = {
new webpack.LoaderOptionsPlugin({
test: /\.(styl)$/
}),
new ExtractTextPlugin({filename: '[name].css'})
new ExtractTextPlugin({filename: '[name].css'}),
new HtmlWebpackPlugin({favicon: 'src/assets/favicon.png'})
],
externals: {
dagreD3: 'dagre-d3',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册