what is tapable
Webpack architecture is heavily based on events. Each webpack plugin is basically a set of listeners hooked on different events during compilation phases(编译阶段). Under the hood, webpack uses a library called
tapable
to encapsulate(封装) “publish-subscribe” implementation.