在同事的mac电脑上,可以正常编译,拿到我这边就出错了(⊙﹏⊙)
好像是webpack在window下的一个bug,需要让 webpack 和你的项目保持在一个盘符下,参考。
解决方法:
修改config.js配置文件,在所有目录前加上path.join,参考1,参考2。