最贊回答 / 小晚啦啦啦
查到的,親測可用。如果之前template屬性使用的html模板內添加了script標簽,將其刪掉再使用chunks屬性自動添加即可。(注釋掉也不可以,必須刪除!)
2017-03-09
老師上面寫的query:{ name:'assets/[name]-[hash:5].[ext]' } 改成文檔中的 use: "file-loader?name=[name].[ext]&publicPath=assets/foo/&outputPath=app/images/"
2017-03-09
沒有全局安裝webpack的時候需要使用.\node_modules\.bin\webpack hello.js hello.bundle.js才能成功
2017-03-09