vue项目无法在IE打开
npm install --save babel-polyfill
在vue.config里
configureWebpack: {
name: name,
resolve: {
alias: {
'@': resolve('src')
}
},
entry: ['babel-polyfill', './src/main.js']
},
index.html
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
上面的操作还是无法打开,于是我打开了报错里面的其中我安装了crypto-js
于是在vue.config继续加了
transpileDependencies: ['crypto-js'],