Hanger:wp2 Hanger$ webpack
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/js" is not an absolute path!
Hanger:wp2 Hanger$ webpack
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/js" is not an absolute path!
这段时间正好学到了建议你去看原网站吧webpack1和webpack2有区别的
const path = require('path');
path: path.resolve(__dirname, './bin'),
这样就可以了
10 回答11.7k 阅读
2 回答3.2k 阅读✓ 已解决
5 回答2.2k 阅读
4 回答2.2k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
3 回答833 阅读✓ 已解决
3 回答2.6k 阅读
webpack配置中的output的路径不是绝对路径
自己改改或者贴上配置吧 - -