-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Open
Labels
Milestone
Description
See #1018 (comment) for a discussion which leads to the creation of this issue.
I propose adding a new command (working name build-dev
) which watches for changes and rebuild the bundle (effectively, given the current CRA implementation, it should execute webpack --watch
), then writes it onto filesystem.
The main motivation is an easier integration path with non-Node.js dev servers: such servers could just serve continuously updating bundle from the filesystem.
The only desired configuration options is an --output
, which could probably be specified via a command line argument:
% npm run build-dev -- --output ../static/www
Alternative command name suggestions:
watch
build-watch
srfarley, jasonblanchard, fbvilela, nilliams, cr101 and 288 moreViswa-Vinod, adamjgriffith, georgeciubotaru, pupudu, akuji1993 and 15 morepupudu, akuji1993, sonnylazuardi, elgunhuseynli, vaas-montenegro and 18 moresilverwind, leocs2417, adrian-martinez-dev, dhruvit-r, pachecoj2 and 7 more