tapable
watchpack
tapable | watchpack | |
---|---|---|
5 | 1 | |
3,691 | 373 | |
0.4% | 0.0% | |
0.0 | 6.6 | |
6 months ago | about 1 month ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tapable
-
Ask HN: Best JavaScript plugin system you have seen?
Plugin systems are hard to get right and hard to find the right balance.
I was recently poking through Webpack's [tapable](https://github.com/webpack/tapable) which allows pretty immense customization albeit it's a little complex.
What is the best you've come across?
-
Simple mistake to ruin Webpack bundle optimization
1) tapable package for event-driven architecture 2) terser for minification 3) acorn for AST processing 4) watchpack to watch file changes
-
An Intro To Webpack
If we take a look at the webpack repository on GitHub, we will find files containing the definitions of some of the key classes that handle the compilation process in webpack. Webpack makes use of its Tapable library to expose hooks for events during the bundle creation process. Many of the classes in webpack extend Tapable in order to provide hooks to plugins so that they, too, can access lifecycle events.
-
Pluggable Apps with Lenny the Duck 🦆
These registration points are called Hooks.
-
Build "Pluggable" Apps with Stan the Duck 🦆
Webpack: Tapable
watchpack
-
Simple mistake to ruin Webpack bundle optimization
1) tapable package for event-driven architecture 2) terser for minification 3) acorn for AST processing 4) watchpack to watch file changes
What are some alternatives?
terser - 🗜 JavaScript parser, mangler and compressor toolkit for ES6+
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Halia - Extensible TS / JS Dependency Injection Framework
Babel (Formerly 6to5) - 🐠 Babel is a compiler for writing next generation JavaScript.
Acorn - A small, fast, JavaScript-based JavaScript parser
Snowpack - ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️ [Moved to: https://github.com/FredKSchott/snowpack]
WordPress - WordPress, Git-ified. This repository is just a mirror of the WordPress subversion repository. Please do not send pull requests. Submit pull requests to https://github.com/WordPress/wordpress-develop and patches to https://core.trac.wordpress.org/ instead.