I\'ve set up a basic react application with webpack but I couldn\'t get the webpack-dev-server
running properly.
I\'ve installed webpack-dev-server>
I've got the issue resolved by myself. Silly as it sounds but the issue was with the publicPath
under the output
object. It should match the path
property instead of just /build/
, i.e.,
output: {
path: path.join(__dirname, 'build/js'),
publicPath: '/build/js', // instead of publicPath: '/build/'
filename: '[name].js'
},