问题描述
这是我的 webpack.config
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
当我使用 webpack serve 时,它基于 module.exports,就像注释一样。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)