An opinionated js builder, using esbuild
. Rebuild on file system changes and livereload is default.
The following structure is needed to yield a build:
src/index.jsx
src/index.html
src/index.html
referencing ./index.jsx
static
folder to hold images/etc, (will be copied to the build folder)Usage for building:
ego build
Usage for dev env:
ego --open --port 8080
Configuration:
--outdir
- (default: ./dist
) change the build folder--staticdir
- (default: ./static
) change the static folder--public-url
- (default: /
) change the base url--sourcemap
- (default: true
) generate sourcemap--engine
- (default: esbuild-standard
, options: [esbuild-standard
, esbuild-svelte
])--analyze
- (default: all
, options: [all
, print
, save
]) show a report of the bundle content--host
- (default: true
) starts a webserver hosting the app--clear-console
- (default: true
) clears the console on new eventsDev only flags:
--port
- (default: 8080
) dev server port--open
- (default: false
) opening the page in a browser--lint
- (default: off, options: [`,
warn,
lint`]) run linting