Don't produce compressed assets at build time and instead do it as part of the nginx build

The core vite build shouldn't be responsible for implementing optimisations that are specific to a particular distribution mechanism. e.g. static compressed files for nginx.

This way the core build is "clean".

Instead, the packager/distributor of the build should be responsible for it. e.g. the nginx docker distribution should do any optimisations that it chooses.
This commit is contained in:
Hugh Nimmo-Smith
2025-02-06 10:44:05 +00:00
parent 4fc7fbe8fe
commit 10fe734c2e
4 changed files with 11 additions and 21 deletions

View File

@@ -113,7 +113,6 @@
"unique-names-generator": "^4.6.0",
"vaul": "^1.0.0",
"vite": "^6.0.0",
"vite-plugin-compression2": "^1.3.1",
"vite-plugin-html-template": "^1.1.0",
"vite-plugin-svgr": "^4.0.0",
"vitest": "^3.0.0",