Skip to content

Commit

Permalink
dev add favicon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Aug 29, 2017
1 parent f65e714 commit 6e859e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/webpack.dev.conf.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
var utils = require('./utils')
var path = require('path')
var webpack = require('webpack')
var config = require('../config')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')

function resolveApp(relativePath) {
return path.resolve(relativePath);
}

// add hot-reload related code to entry chunks
Object.keys(baseWebpackConfig.entry).forEach(function (name) {
baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name])
Expand All @@ -28,6 +33,7 @@ module.exports = merge(baseWebpackConfig, {
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
favicon: resolveApp('favicon.ico'),
inject: true
}),
new FriendlyErrorsPlugin()
Expand Down

0 comments on commit 6e859e0

Please sign in to comment.