Here's my webpack configuration:
module.exports = {
entry: './src/index.js',
output: {
path: './js',
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel',
}
]
},
}
I start the webpack-dev-server like this: webpack-dev-server --inline from the root directory of my app.
The problem is when I make changes in my index.js file it looks like the dev-server is bundling in the console, but I see no changes in the browser. Even after manually refreshing the served bundle.js does not change (I'm looking at it in the developer tools, I know that webpack-dev-server serves the file from memory and doesn't write changes to the file system).
Is there anything wrong in my webpack configuration or do I need to configure the webpack-dev-server somehow?
bundle.js? And which url do you use to view the page? localhost:8080?<script src="js/bundle.js"></script>webpack-dev-server --inline --hot