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

If you’re using webpack’s dev server you can pass in options to use /public as a base directory.

devServer: {
    publicPath: "https://stackoverflow.com/",
    contentBase: "./public",
    hot: true
},

See the webpack configuration docs, and specifically the webpack dev server docs for more options and general information.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)