All Projects → ahfarmer → Webpack Hmr 3 Ways

ahfarmer / Webpack Hmr 3 Ways

Three ways to set up your webpack hot module replacement: webpack-dev-server CLI, webpack-dev-server API, and express with webpack-hot-middleware.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Webpack Hmr 3 Ways

Webpack Isomorphic Dev Middleware
The webpack-dev-middleware, but for isomorphic applications
Stars: ✭ 38 (-64.81%)
Mutual labels:  webpack, middleware, express
Webpack Serve
Repository has moved:
Stars: ✭ 1,125 (+941.67%)
Mutual labels:  webpack, middleware
Http Proxy Middleware
⚡ The one-liner node.js http-proxy middleware for connect, express and browser-sync
Stars: ✭ 8,730 (+7983.33%)
Mutual labels:  middleware, express
Bbs node
node后端服务,node+express+mysql, 搭建token-权限-管理完整的web服务, 对应页面: https://www.lyh.red/admin \ https://www.lyh.red/bbs \ 接口地址https://www.lyh.red/apidoc/index.html
Stars: ✭ 78 (-27.78%)
Mutual labels:  middleware, express
Jobeir
Building the future of tech jobs search
Stars: ✭ 47 (-56.48%)
Mutual labels:  webpack, express
Rainbow
An Express router middleware for RESTful API base on file path.
Stars: ✭ 53 (-50.93%)
Mutual labels:  middleware, express
Polled.win
📊 Real time polling
Stars: ✭ 76 (-29.63%)
Mutual labels:  webpack, express
Tested
Angular Material in MEAN Stack Website Source
Stars: ✭ 35 (-67.59%)
Mutual labels:  webpack, express
Redirect Ssl
Connect/Express middleware to enforce https using is-https
Stars: ✭ 81 (-25%)
Mutual labels:  middleware, express
Service Tools
Prepare your Node.js application for production
Stars: ✭ 89 (-17.59%)
Mutual labels:  middleware, express
Corser
CORS middleware for Node.js
Stars: ✭ 90 (-16.67%)
Mutual labels:  middleware, express
Phaser3template
heroku deployable webpacked phaser3 template with socket.io for multi or single player games
Stars: ✭ 44 (-59.26%)
Mutual labels:  webpack, express
Art Template
High performance JavaScript templating engine
Stars: ✭ 9,554 (+8746.3%)
Mutual labels:  webpack, express
React Cool Starter
😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (+902.78%)
Mutual labels:  webpack, express
Redux Json Router
Declarative, Redux-first routing for React/Redux browser applications.
Stars: ✭ 37 (-65.74%)
Mutual labels:  webpack, middleware
Express Joi Validation
validate express application inputs and parameters using joi
Stars: ✭ 70 (-35.19%)
Mutual labels:  middleware, express
Apicache
Simple API-caching middleware for Express/Node.
Stars: ✭ 957 (+786.11%)
Mutual labels:  middleware, express
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-70.37%)
Mutual labels:  webpack, express
Mostly
They mostly come at night; mostly.
Stars: ✭ 78 (-27.78%)
Mutual labels:  webpack, express
Connect Cas2
NodeJS implement of CAS(Central Authentication Service) client.
Stars: ✭ 91 (-15.74%)
Mutual labels:  middleware, express

HMR 3 Ways

There are 3 ways to use Webpack HMR. This repository contains a minimal example of each way. In order from simplest to most complex:

Here is a short discussion on how to pick the method you want to use.

About the Code

The browser javascript code within each directory is the same. There are 3 files:

js/index.js: Entry point. require()s the other 2 files, box-creator.js and math-doer.js.

js/math-doer.js: An extremely simple file to illustrate that dependencies are automatically updated by HMR.

js/box-creator.js: An example of a dependency that has side effects, with an example of how to use module.hot.dispose to handle such side effects.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].