webpack 多页应用配置的基本思路是采用多入口配置,然后多次调用 html-webpack-plugin 来生成 html 文件。 假设项目的目录结构为: src |-pages |-home |-home.html |-home.js |-about |-about.html |-about.js 复制代码 webpack.config.js: const HTMLWebpack...
webpack 多页应用配置的基本思路是采用多入口配置,然后多次调用 html-webpack-plugin 来生成 html 文件。 假设项目的目录结构为: src |-pages |-home |-home.html |-home.js |-about |-about.html |-about.js 复制代码 webpack.config.js: const HTMLWebpack...