question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack-dev-server serves a directory list instead of the app page

See original GitHub issue

screenshot from 2016-07-26 15 55 14 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 : screenshot from 2016-07-26 15 57 09

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:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

17reactions
shellscapecommented, Aug 30, 2017

@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.

12reactions
alexlevy0commented, Aug 30, 2017

Same issue as well

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found