-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack中常用的loader和plugin #22
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
loader
ts-loader
:配置将ts编译转换成js,需配合tsconfig.json等使用vue-loader
:vue语法转换eslint-loader
:对eslint的支持,提供include、options等多个配置项css-loader
:加载 CSS,支持模块化、压缩、文件导入等特性sass-loader
:将scss文件转换成cssimage-loader
:加载并压缩图片文件plugin
copy-webpack-plugin
:文件或文件夹拷贝mini-css-extract-plugin
:可用于将组件内的css分开打包html-webpack-plugin
:对html文件的处理terser-webpack-plugin
:代码压缩,支持对es6+语法的转换The text was updated successfully, but these errors were encountered: