Permalink
Browse files

config path for webpack dev command

  • Loading branch information...
toanalien committed Sep 5, 2017
1 parent 63736ca commit 58892cd59ec61fcd22b65da1111e7a63bbdcba3e
Showing with 6 additions and 3 deletions.
  1. +6 −3 client/build/webpack.dev.conf.js
@@ -8,10 +8,13 @@ var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
// 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])
baseWebpackConfig.entry[name] = ['./client/build/dev-client'].concat(baseWebpackConfig.entry[name])
})
module.exports = merge(baseWebpackConfig, {
entry: {
app: './client/src/main.js'
},
module: {
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap })
},
@@ -26,8 +29,8 @@ module.exports = merge(baseWebpackConfig, {
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
filename: config.build.index,
template: './client/index.html',
inject: true
}),
new FriendlyErrorsPlugin()

0 comments on commit 58892cd

Please sign in to comment.