Skip to content

Commit

Permalink
fix(web): should use shell in docker (#12278)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Oct 31, 2023
1 parent 7c90519 commit 9732f79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/bin/postbuild.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
set -e

# purgecss --css build/static/css/*.css --content build/index.html build/static/js/*.js --output build/static/css
Expand Down
2 changes: 1 addition & 1 deletion web/bin/prebuild.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
set -e

babel scripts --out-dir tmp --extensions '.ts,.tsx'
Expand Down
4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
},
"scripts": {
"dev": "react-scripts start",
"prebuild": "bash bin/prebuild.sh",
"prebuild": "sh bin/prebuild.sh",
"build": "react-scripts build",
"postbuild": "bash bin/postbuild.sh",
"postbuild": "sh bin/postbuild.sh",
"serve": "serve build --listen 3000",
"analyze": "react-scripts build && source-map-explorer 'build/static/js/*.js'",
"tsc": "tsc --noEmit",
Expand Down

0 comments on commit 9732f79

Please sign in to comment.