Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
432 views
in Technique[技术] by (71.8m points)

IE不兼容VUE项目

按照一些网友的方法,已经在项目里面安装了 babel-polyfill
image

然后在build文件夹下的webpack.base.conf.js里面也修改了相关配置
image

main.js里面也引入了 babel-polyfill
image

可是项目在IE跑起来的时候依旧是空白 o(╥﹏╥)o
只有主页的背景图可以加载显示出来,其他全是空白的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  • webpack 配置了,main.js就不用加了
  • 是否有配置 babel 的文件
"targets": {
      "browsers": ["> 1%", "last 2 versions", "not ie <=8"]
},
  • Vue 兼容到 IE9 以上

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...