采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
"dependencies": {
"axios": "^0.17.1",
"babel-polyfill": "^6.26.0",
"better-scroll": "^1.3.0",
"vue": "^2.5.2",
"vue-axios": "^2.0.2",
"vue-router": "^3.0.1"
}
估计是兼容性问题,但不知道如何解决
babel-polyfill 为啥要作为 webpack 的 entry?
源码中有 import 'babel-polyfill' 吗
有,但还是白屏,代码片断如下: webpack.base.conf.js module.exports = { context: path.resolve(__dirname, '../'), entry: { app: ["babel-polyfill", "./src/main.js"] } --------------- main.js import 'babel-polyfill' import Vue from 'vue'
登录后可查看更多问答,登录/注册
掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp
2.9k 21
1.3k 21
1.5k 20
1.5k 18
1.8k 17
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号