Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.output.path: The provided value "./dist" is not an absolute path!
- configuration.output.path: The provided value "./dist" is not an absolute path!
2017-08-07
webpack hello.js hello.bundle.js出现bash:webpack:command not found,试过在.bin执行或者npm run-script都不行
2017-08-07
谢谢老师,老师再见。一开始的报错看评论区的解答,就跟着解决了,后面看到第四章的报错看评论区也解决不了,然后去官方文档重新过了一遍基础才解决(主要是版本问题)。有些人说老师的过时了很坑,我觉得“你想正确你就自己去看文档钻研,衣来伸手饭来张口还嫌弃了”!文档是茫茫多的详尽知识(全部看完猴年马月?而且自己需要的是哪些?),而老师是告诉你实际应用中常用的功能!看视频才知道知道哪些是常用的功能,才知道自己要用到什么,然后同步去翻文档,查资料或者参考别人的解决办法。
2017-08-06
出错了,谁能回答我一下,谢谢。Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
2017-08-05
对于最后一步,在a里能正常显示,但是在bc里报错: Cannot read property 'entry' of undefined
解决方法是:chunks['b','main']/chunks['c','main']
需要把main引进来
解决方法是:chunks['b','main']/chunks['c','main']
需要把main引进来
2017-08-05
看完老师视频照着写的demo和笔记. 我用的是webpack3.0版本的
文件下载地址:http://pan.baidu.com/s/1eR2Z6Ki
文件下载地址:http://pan.baidu.com/s/1eR2Z6Ki
2017-08-05
entry设置为对象的时候,能生成成功,但是打包的文件并没有出来,后来才发现,多了一个点
module.exports = {
entry: {
a:"./dist/js/a.js",
b:"./dist/js/b.js"
},
output: {
path: __dirname + "/bundle",//以前写的是 ./bundle.js 一直没出来 真心无语
filename: "[hash]-[name].js"//打包后输出文件的文件名
}
}
module.exports = {
entry: {
a:"./dist/js/a.js",
b:"./dist/js/b.js"
},
output: {
path: __dirname + "/bundle",//以前写的是 ./bundle.js 一直没出来 真心无语
filename: "[hash]-[name].js"//打包后输出文件的文件名
}
}
2017-08-04