最赞回答 / 小丫丫286
从别人问题的回答里看到的,模板index.html里面之前的js引用不能注释掉,而是必须要删除掉<...图片...> 这样不行<...图片...> 删掉就可以了亲测可行
2017-09-28
我的a.html是正常的,b和c页面一直提示 TypeError: Cannot read property 'entry' of undefined”,这是什么原因,求解答,找半天没找到问题所在。
2017-09-28
最赞回答 / 慕粉3691834
如果使用命令行来完成自动打包,那么退出命令行工具就不能自动打包了。如果想在命令行关闭后也能完成自动打包,可使用supervisor工具自动执行并监听运行结果。
2017-09-27
const path=require('path')
module.exports={
entry:'./src/script/main.js',
output:{
path:path.resolve(__dirname,'dist/js'),
filename:'bundle.js'
}
}
module.exports={
entry:'./src/script/main.js',
output:{
path:path.resolve(__dirname,'dist/js'),
filename:'bundle.js'
}
}
2017-09-27
G:\study\myexample\webpack-test>node_modules\.bin\webpack hello.js hello.bundle.js --module-bind "css=style-loader!css-loader" --progress --display-modules --display-reasons
2017-09-27
不懂npm的同学不要看了。先学学npm怎么用好吧。。。-g,--save,--save-dev的意义还是需要知道的。
2017-09-27