o2
This commit is contained in:
parent
b9fa2e7cd8
commit
cd8fce89d6
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ check_build_directory() {
|
||||||
# Function to build Flutter web app for production
|
# Function to build Flutter web app for production
|
||||||
build_flutter_app() {
|
build_flutter_app() {
|
||||||
print_status "Building Flutter web app for production..."
|
print_status "Building Flutter web app for production..."
|
||||||
flutter build $FLUTTER_BUILD_TARGET $FLUTTER_BUILD_MODE --dart-define=API_BASE_URL=$API_BASE_URL
|
flutter build $FLUTTER_BUILD_TARGET $FLUTTER_BUILD_MODE --dart-define=API_BASE_URL=$API_BASE_URL --dart2js-optimization=O
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
print_error "Flutter build failed"
|
print_error "Flutter build failed"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue