fix for working on windows

This commit is contained in:
Einhornimmond 2025-04-30 20:17:53 +02:00
parent e9fe21a196
commit 48545a1843
3 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -8,7 +8,7 @@
"dependsOn": ["database#up"]
},
"start": {
"dependsOn": ["database#up"]
"dependsOn": ["database#up", "build"]
}
}
}

View File

@ -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}'",