Run bundler through honcho

This commit is contained in:
2025-02-15 12:15:08 +01:00
parent 2c9b72fe1d
commit 8528820d89
5 changed files with 25 additions and 11 deletions

View File

@ -99,12 +99,6 @@ class JSBundler:
if process.returncode:
raise RuntimeError(f"Bundler failed with returncode {process.returncode}")
@staticmethod
def runserver() -> subprocess.Popen:
"""Bundle js files automatically in background when called in debug mode."""
logging.getLogger("django").info("Running javascript bundling server")
return subprocess.Popen(["npm", "run", "serve"])
@staticmethod
def get_manifest() -> JSBundlerManifest:
return JSBundlerManifest(BUNDLED_ROOT / ".vite" / "manifest.json")