RFC
The current build and preview commands are ambiguous.
Currently, we have:
preview command executes php -S 0.0.0.0:8080 -t public - looks like a workaround for starting the server via npm instead of PHP
build command executes vite build --watch - builds the assets and rebuilds them on CSS/JS changes
We should have:
watch command executes vite build --watch - builds the assets and rebuild them on CSS/JS changes
build command executes vite build - builds the assets and exits
RFC
The current
buildandpreviewcommands are ambiguous.Currently, we have:
previewcommand executesphp -S 0.0.0.0:8080 -t public- looks like a workaround for starting the server via npm instead of PHPbuildcommand executesvite build --watch- builds the assets and rebuilds them on CSS/JS changesWe should have:
watchcommand executesvite build --watch- builds the assets and rebuild them on CSS/JS changesbuildcommand executesvite build- builds the assets and exits