diff --git a/admin/package.json b/admin/package.json index 40cd3114f..2a8983cb7 100644 --- a/admin/package.json +++ b/admin/package.json @@ -9,7 +9,7 @@ "dev": "vite", "build": "vite build", "start": "vite preview", - "postbuild": "find build -type f -regex '.*\\.\\(html\\|js\\|css\\|svg\\|json\\)' -exec gzip -9 -k {} +", + "postbuild": "uname | grep -q Linux && find build -type f -regex '.*\\.\\(html\\|js\\|css\\|svg\\|json\\)' -exec gzip -9 -k {} + || echo 'Skip precompress on non-Linux'", "lint": "eslint --max-warnings=0 --ext .js,.vue,.json .", "stylelint": "stylelint --max-warnings=0 '**/*.{scss,vue}'", "test": "cross-env TZ=UTC vitest run", diff --git a/federation/turbo.json b/federation/turbo.json index 568eb30dc..2533a8de2 100644 --- a/federation/turbo.json +++ b/federation/turbo.json @@ -8,7 +8,7 @@ "dependsOn": ["database#up"] }, "start": { - "dependsOn": ["database#up"] + "dependsOn": ["database#up", "build"] } } } \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 6969de40e..bbcf535da 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,7 +7,7 @@ "prebuild": "yarn compile-scss", "build": "vite build", "start": "vite preview", - "postbuild": "find build -type f -regex '.*\\.\\(html\\|js\\|css\\|svg\\|json\\)' -exec gzip -9 -k {} +", + "postbuild": "uname | grep -q Linux && find build -type f -regex '.*\\.\\(html\\|js\\|css\\|svg\\|json\\)' -exec gzip -9 -k {} + || echo 'Skip precompress on non-Linux'", "analyse-bundle": "yarn build && webpack-bundle-analyzer build/webpack.stats.json", "lint": "eslint --max-warnings=0 --ext .js,.vue,.json .", "stylelint": "stylelint --max-warnings=0 '**/*.{scss,vue}'",