Skip to content

Commit

Permalink
CI: add check for webpack development mode
Browse files Browse the repository at this point in the history
Uploaded webpack files should be produced in production
mode rather than development mode.
  • Loading branch information
stsnel committed Oct 4, 2024
1 parent f68a281 commit 23ca082
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ jobs:
- name: Lint with standard
run: |
standard
- name: Check for webpack bundles produced in development mode
run: |
if grep -l 'ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").' $(find . -name "*.js")
then echo "Error: found a webpack bundle that was produced in development mode (needs to be production mode)"
exit 1
fi

0 comments on commit 23ca082

Please sign in to comment.