Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

这是我的目录结构

clipboard.png

webpack.dev.conf.js下的主入口是这个

clipboard.png

执行生成环境node dev-server也没有报错

clipboard.png

但是在html页面引用这个smallhourse.js却没有找到?
clipboard.png
clipboard.png

这是何解????


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
463 views
Welcome To Ask or Share your Answers For Others

1 Answer

你的webpack.config.dev.js是在build文件夹里

为什么entry写的是:'./resources'? resources文件夹跟build是同级的啊
"./"不就是在build文件夹内部取了么- -server又是从哪个文件夹启动呢?

不要贴图。。直接上代码 config配置文件 server配置文件。。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...