support standalone dev server for esbuild
Created by: sqs
Refactors some other Webpack standalone dev server so that proxy config and HTML page content can be shared between Webpack and esbuild.
Also includes some other fixes in other commits.
Tested and confirmed working:
-
enterprise/dev/start.sh
(existing Webpack mode, no regressions) -
sg run enterprise-web-standalone
(existing Webpack mode, no regressions) -
DEV_WEB_BUILDER=esbuild enterprise/dev/start.sh
(existing esbuild mode, no regressions) -
DEV_WEB_BUILDER=esbuild sg run enterprise-web-standalone
(NEW esbuild mode, works same as the corresponding Webpack mode)