Skip to content

#2977 is not really fixed. check it pls. #2979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
lornally opened this issue Jan 29, 2021 · 1 comment
Closed
1 of 2 tasks

#2977 is not really fixed. check it pls. #2979

lornally opened this issue Jan 29, 2021 · 1 comment

Comments

@lornally
Copy link

  • webpack version: 5.4.0
  • Node.js version: 15.5.0
  • Operating System: macos bigsur 11.1
  • Additional tools: vscode, coffeescript
  • NPM Version:7.3.0
  • webpack-dev-server Version: 3.11.0
  • Browser: chrome
  • This is a bug
  • This is a modification request

Code

# webpack.config.coffee
cmd = # here is another config

html = # here is config for html
	entry: d1: './src/d1.js'
	output:
		path: path.resolve __dirname, 'dist/html'
		filename: '[name].[contenthash].js'
	plugins: [
		new HtmlWebpackPlugin	title: '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

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

@alexander-akait
Copy link
Member

Please stop spamming, your already have the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants