Webpack-dev-server serves a directory list instead of the app page
See original GitHub issue
My Web app config :
`var webpack = require(‘webpack’);
var path = require(‘path’);
module.exports = { entry: [ ‘webpack-dev-server/client?http://127.0.0.1:8080’, ‘webpack/hot/only-dev-server’, ‘./src/index.jsx’ ], output: { path: path.join(__dirname,‘public’), filename: ‘bundle.js’, publicPath: ‘http://localhost:8080’ }, devServer: { contentBase: “./public”, hot: true }, resolve: { modulesDirectories: [‘node_modules’,‘src’], extensions: [‘’,‘.js’] }, module: { loaders: [ { test: /.jsx?$/, exclude: /node_modules/, loaders: [‘react-hot’,‘babel?presets[]=react,presets[]=react,presets[]=es2015’] }
]
},
plugins:[
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
]
};
`
This is my directory structure :

Please help me with this as i am not able to see my index.html. Is there something wrong with my config file
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Webpack-dev-server serves a directory list instead of the app ...
I can only see the actual app under /public . The configs in webpack.config.js are below: var path = require('path'); ...
Read more >Webpack-dev-server serves a directory list instead of the app ...
Coding example for the question Webpack-dev-server serves a directory list instead of the app page-Reactjs.
Read more >DevServer - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >Node.js – Webpack-dev-server serves a directory list instead of the ...
I can only see the actual app under /public . The configs in webpack.config.js are below: var path = require('path'); var webpack =...
Read more >webpack-dev-server
The webpack-dev-server will serve the files in the current directory, ... which the bundle is notified that a change happened instead of a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@alexlevy0 please avoid posting “same” or “me too” comments on a thread. Rather, use the reaction button an add a thumbs-up reaction to the OP or another comment. See here for more information on reactions.
Same issue as well