vue 不支持ie11解决方案

  作者:chrispy

npm i es6-promise--savenpm install babel-polyfill--savemain.js 文件添加import 'babel-polyfill'import promise from 'es6-promise'promise.polyfill()build文件夹下webpack.base.conf.jsmodule.exports = { context: path.resolve(__dirname, &

npm i es6-promise --save


npm install babel-polyfill --save


 

 


main.js 文件添加


import 'babel-polyfill'


import promise from 'es6-promise'


promise.polyfill()


 


build文件夹下webpack.base.conf.js


module.exports = {


    context: path.resolve(__dirname, '../'),


entry: {


    app: ['babel-polyfill', './src/main.js']


}

有用  |  无用

猜你喜欢