Webpack: webpack有一个插件,可以实现同时打包/(复制)index.html到达dist目录,并自动就引入所需要的.js文件,我们要做到的事情就是直接运行打包好的模板文件即可. 问题描述 明明没有报出语法错误却无法运行: 在 webpack.config.js 中配置 html-webpack-plugin 插件 const HtmlWebpackPlugin = require("html-webpack-plugin"); const path = require("path&#