Create React App does not provide watching build mode oficially (#1070).
This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.
Create a React app.
Put the script into scripts/watch.js
.
Create React App does not provide watching build mode oficially (#1070).
This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.
Create a React app.
Put the script into scripts/watch.js
.
function ReloadPlugin() {} | |
ReloadPlugin.prototype.apply = compiler => { | |
ReloadPlugin.watching = false | |
compiler.plugin('watch-run', (p, cb) => { | |
ReloadPlugin.watching = true | |
cb() | |
}) |
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies