Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import path from 'path';
import path from 'path';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary change. Please drop this.

import webpack from 'webpack';

const config = {
devServer: {
hot: true,
inline: true
inline: true,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop this newline, please.

},
devtool: 'cheap-module-eval-source-map',
entry: path.resolve(__dirname, 'app', 'main.js'),
Expand Down Expand Up @@ -55,7 +56,8 @@ const config = {
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'build', 'client')
path: path.resolve(__dirname, 'build', 'client'),
publicPath: "localhost:8080/dev-server/bundle.js"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"/dev-server" would be enough. You shouldn't be specifying the entire scheme here.

},
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
Expand Down