Skip to content

Commit

Permalink
test minified code in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mldangelo committed Oct 4, 2023
1 parent bc10a88 commit 930b3a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
with:
start: npm start
wait-on: 'http://localhost:8000'
env: MINIFY=true
- name: upload test failure artifacts
uses: actions/upload-artifact@v3
if: failure()
Expand Down
1 change: 1 addition & 0 deletions esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ if (process.env.NODE_ENV === "development") {

const devOptions = {
bundle: true,
minify: process.env.MINIFY === "true",
};

const prodOptions = {
Expand Down

0 comments on commit 930b3a8

Please sign in to comment.