The front-end technology: common webpack plug

1、html-webpack-plugin
Simplifies creation of HTML files to serve your webpack bundles.
 
Home address:
 
installation method:
npm i --save-dev html-webpack-plugin
 
2、extract-text-webpack-plugin
Extracts text from a bundle into a separate file.
 
Home address:
 
installation method:
npm install --save-dev extract-text-webpack-plugin
 
3、style-loader
Adds CSS to the DOM by injecting a <style> tag.
 
Home address:
 
 
installation method:
npm install style-loader --save-dev
 
 
 
4、css-loader
The css-loader interprets @import and url() like import/require() and will resolve them.
 
Home address:
 
 
installation method:
npm install --save-dev css-loader
 
 
 
5、sass-loader
Loads a Sass/SCSS file and compiles it to CSS.
 
Home address:
 
 
installation method:
npm install sass-loader node-sass --save-dev
 
 
 
6、url-loader
Home address:
 
 
installation method:
npm install url-loader --save-dev
 
7、file-loader
Home address:
 
installation method:
npm install file-loader --save-dev
 
8、html-loader
Home address:
 
installation method:
npm i -D html-loader
 
9、image-webpack-loader
Image loader module for webpack. Can be used to compress image files.
 
Home address:
 
installation method:
npm install image-webpack-loader --save-dev
 
10、babel-loader
This package allows transpiling JavaScript files using  Babel and  webpack.
 
 
Home address:
 
 
installation method:
webpack 4.x | babel-loader 8.x | babel 7.x
npm install -D babel-loader @babel/core @babel/preset-env webpack
webpack 4.x | babel-loader 7.x | babel 6.x
npm install -D babel-loader@7 babel-core babel-preset-env webpack
 
11、webpack-dev-server
Serves a webpack app. Updates the browser on changes.
 
Home address:
 
 
installation method:
npm install webpack-dev-server --save-dev
 
 
 
12, shock-loader
vue-loader is a loader for webpack that allows you to author Vue components in a format called Single-File Components (SFCs):
 
 
 
Home address:
 
 
 
installation method:
npm install vue-loader --save-dev
 
 
13、@babel/preset-react
Babel preset for all React plugins.
 
 
 
 
Home address:
 
 
 
installation method:
npm install --save-dev @babel/preset-react
 
 
 
14、clean-webpack-plugin
A webpack plugin to remove your build folder(s) before building.
 
 
 
Home address:
 
 
 
installation method:
npm i clean-webpack-plugin --save-dev
 
 
15、raw-loader
A loader for webpack that allows importing files as a String.
 
 
Home address:
 
installation method:
npm install raw-loader --save-dev
 
 
16、pug-html-loader
Pug HTML loader for webpack.
 
 
Home address:
 
installation method:
npm install pug-html-loader
 
And it depends on the raw-loader pug 

Guess you like

Origin www.cnblogs.com/popgis/p/11683262.html