1 | var webpack = require('webpack')
|
2 | var merge = require('webpack-merge')
|
3 | var baseConfig = require('./webpack.base.conf')
|
4 | var HtmlWebpackPlugin = require('html-webpack-plugin')
|
5 |
|
6 |
|
7 | Object.keys(baseConfig.entry).forEach(function (name) {
|
8 | baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
|
9 | })
|
10 |
|
11 | module.exports = merge(baseConfig, {
|
12 |
|
13 | devtool: '#eval-source-map',
|
14 | output: {
|
15 |
|
16 |
|
17 | publicPath: '/'
|
18 | },
|
19 | plugins: [
|
20 |
|
21 | new webpack.optimize.OccurenceOrderPlugin(),
|
22 | new webpack.HotModuleReplacementPlugin(),
|
23 | new webpack.NoErrorsPlugin(),
|
24 |
|
25 | new HtmlWebpackPlugin({
|
26 | filename: 'index.html',
|
27 | template: 'index.html',
|
28 | inject: true
|
29 | })
|
30 | ]
|
31 | })
|