diff --git a/package.json b/package.json index 73286ae2..abe5d793 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "tweenjs": "^1.0.2" }, "scripts": { - "build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --loader:.js=jsx --loader:.png=file --loader:.svg=file --loader:.min.js=text", - "build:production": "yarn build --minify" + "build": "yarn build:base --minify", + "build:base": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --loader:.js=jsx --loader:.png=file --loader:.svg=file --loader:.min.js=text", + "dev": "yarn build:base --watch" } }