You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# webpack.config.coffeecmd=# here is another confightml=# here is config for htmlentry:d1:'./src/d1.js'output:path:path.resolve__dirname, 'dist/html'filename:'[name].[contenthash].js'plugins: [
newHtmlWebpackPlugintitle:'Development'
]
devServer:contentBase:'./dist/html'module.exports=[html,cmd] # if i use this line, http://localhost:8080/ is ~/module.exports=[html] # if i use this line, http://localhost:8080/ is right
Code
Expected Behavior
http://localhost:8080/ show '~/', it should show the index.html of the website.
Actual Behavior
when i use "webpack serve", http://localhost:8080/ only show: '~/' (the blank directory)
For Bugs; How can we reproduce the behavior?
ref: #2977
this is useless: devServer: contentBase: './dist/html', publicPath: '/dist/html'
this can not fix the bug. i have push it in git : https://github.com/lornally/weppackserveissue
The text was updated successfully, but these errors were encountered: