摘要:
1、安装 yarn add @babel/core @babel/polyfill @babel/preset-env babel-loader 2、项目根目录webpack.config.js中配置rules { test: /\.js$/, exclude: /node_modules/, lo 阅读全文
摘要:
1、配置webpack不需要安装什么,只需要原先安装的webpack即可配置 const path = require('path') const webpack = require('webpack') module.exports = { mode: 'production', entry: { 阅读全文