热门IT资讯网

前端技术之:常用webpack插件

发表于:2024-11-25 作者:热门IT资讯网编辑
编辑最后更新 2024年11月25日,1、html-webpack-pluginSimplifies creation of HTML files to serve your webpack bundles.主页地址:https://gi

1、html-webpack-plugin

Simplifies creation of HTML files to serve your webpack bundles.

主页地址:

https://github.com/jantimon/html-webpack-plugin

安装方法:

npm i --save-dev html-webpack-plugin


2、extract-text-webpack-plugin

Extracts text from a bundle into a separate file.

主页地址:

https://github.com/webpack-contrib/extract-text-webpack-plugin

安装方法:

npm install --save-dev extract-text-webpack-plugin


3、style-loader

Adds CSS to the DOM by injecting a