2020年11月3日
摘要: 1、安装 yarn add @babel/core @babel/polyfill @babel/preset-env babel-loader 2、项目根目录webpack.config.js中配置rules { test: /\.js$/, exclude: /node_modules/, lo 阅读全文
posted @ 2020-11-03 23:04 随心的博客 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 1、配置webpack不需要安装什么,只需要原先安装的webpack即可配置 const path = require('path') const webpack = require('webpack') module.exports = { mode: 'production', entry: { 阅读全文
posted @ 2020-11-03 22:29 随心的博客 阅读(627) 评论(0) 推荐(0) 编辑