1. Tout d'abord, ajoutez le code suivant au fichier index.html dans le répertoire racine
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2. Dépendances d'installation de npm
Installer le plugin babel-polyfill
指令 :
npm installe babel-polyfill --save-dev
3. Introduisez le plugin dans le fichier main.js
importer «babel-polyfill»
4. Vous devez apporter les modifications suivantes dans le fichier de configuration webpack.base.config.js
module.exports = {
entry: {
app: ["babel-polyfill", "./src/main.js"]
}
};
替代
module.exports = {
entry: {
app: './src/main.js'
}
}
ok finition