webpack–html插件

第一步

安装html-webpack-plugin: yarn add html-webpack-plugin -D

webpack简单html插件--plugins

第二步

webpack.config.js文件中增加配置语句

webpack简单html插件--plugins
第三步

src文件夹下创建一个index.html文件

webpack简单html插件--plugins
第四步

继续完成 webpack.config.js文件中的配置

webpack简单html插件--plugins
配置完成后,使用npm run dev打包查看即可 (~ ̄▽ ̄)~

相关文章:

  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2021-08-17
  • 2021-10-28
  • 2020-05-22
相关资源
相似解决方案