目录
一、兼容准备
主要是以ES6编译转换,字体样式、一些插件说明
二、使用步骤
1.引入库
代码如下(示例):
npm install babel-polyfill //安装ES6转换ES5
npm install babel-plugin-transform-es2015-modules-commonjs
2.在main.js中写入
在main.js最顶部引入
import 'regenerator-runtime/runtime'
import 'babel-polyfill'
3.在vue.config.js
在module.exports中的chainWebpack下添加
config.entry.app =