首先,你需要安装 html-loader : npm install --save-dev html-loader. 然后将插件添加到你的 webpack 配置中。例如:. file.js import html from "./file.html";.
確定! 回上一頁