处理js语法及校验:
如何去优化和兼容一些高级语法
yarn add @babel/plugin-transform-runtime
yarn add @babel/runtime
yarn add @babel/polyfill
yarn add eslint-loader
index.js
require('@babel/polyfill');
webpack.config.js
let path = require('path');
let HTMLWebpackPlugin = require('html-webpack-plugin');
module.exports = {
devServer: {
// 开发服务器的配置
port: 3000,
progress: true,
contentBase