euchre-live

Euchre web-app for the socially distant family
git clone git://git.alexkarle.com/euchre-live.git
Log | Files | Refs | README | LICENSE

commit 61c753127abca2f257ae84ffa5e0084b93809ccc (patch)
parent e7ec4f06cd169a9c36838fc94937cfa482b9e45d
Author: Alex Karle <alex@alexkarle.com>
Date:   Sun,  2 May 2021 17:49:08 -0400

build: Add sourcemaps to developer build

sourcemaps allow browsing the source (which is otherwise bundled) in
browser dev tools, which is super helpful! They aren't needed for prod,
since it'll be just more bytes to serve... (the repo is linked if they
want to browse it!)

Diffstat:
Mbin/build.sh | 2+-
Mpackage.json | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/build.sh b/bin/build.sh @@ -20,7 +20,7 @@ build() { ROOT=$(dirname "$(dirname "$0")") cd $ROOT || die "unable to cd to $ROOT" -build development +build development --sourcemap build production --minify echo ">>> Build Success! <<<" diff --git a/package.json b/package.json @@ -4,7 +4,7 @@ "version": "0.0.1", "devDependencies": {}, "scripts": { - "dev": "cd assets && esbuild --bundle --loader:.js=jsx --watch app.js --outfile=../public/asset/euchre-live.development.js" + "dev": "cd assets && esbuild --sourcemap --bundle --loader:.js=jsx --watch app.js --outfile=../public/asset/euchre-live.development.js" }, "dependencies": { "carbon-components": "^10.34.0",