-
Notifications
You must be signed in to change notification settings - Fork 33
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
【20180822】Webpack 手动实现一个 Loader 和 Plugin #103
Labels
Comments
zhongxia245
changed the title
【20180822】Webpack 手动实现一个 Loader 和 Plugin
【TODO】【20180822】Webpack 手动实现一个 Loader 和 Plugin
Aug 23, 2019
Webpack编写 Loader 和 Plugin 插件loader文章地址:https://juejin.im/post/5a698a316fb9a01c9f5b9ca0loader是什么?
loader 有什么用?
loader 怎么用?
如何开发 loader?
pluginplugin 是什么?
plugin 有什么用?
如何使用 plugin?
如何自定义 plugin?
参考文档:https://webpack.docschina.org/concepts/plugins/loader 和 plugins 的区别?1. 都扩展了 webpack 的功能2. loader 用于加载某一些资源,它作用于一个一个文件上
3. plugins 功能更丰富,可以去解决 loader 解决不了的问题
为什么需要他们呢?webpack 本身只提供了对 commons 的 js 处理,其他的比如 less,sass,es6, img 等并没有处理方法但是 webpack 有一个强大的插件机制, 不能处理的比如 es6,css, less 等则可以通过加载相对应的 loader 来处理 |
zhongxia245
changed the title
【TODO】【20180822】Webpack 手动实现一个 Loader 和 Plugin
【20180822】Webpack 手动实现一个 Loader 和 Plugin
Aug 23, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这里因为是用思维导图的方式来继续 webpack loader 和插件的介绍以及基本的开发流程
看详细代码:点这里
The text was updated successfully, but these errors were encountered: