大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

前端技术之:常用webpack插件

1、html-webpack-plugin

从事内蒙古服务器托管,服务器租用,云主机,雅安服务器托管域名申请,CDN,网络代维等服务。

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