webpack配置 仅学习目的 npm初始化-y 触摸webpack.config.js(在vscode上进行编辑)或cat> webpack.config.js(继续输入)const path = require('path'); ... Ctrl + D mkdir src mkdir公共mkdir js猫> main.js __ npm我webpack webpack-cli @ babel / core @ babel / preset-react babel-loader --save-dev -E(E =确切版本)__ cat> index.html npm我Reactreac