最赞回答 / 小晚啦啦啦
查到的,亲测可用。如果之前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