diff options
author | Matt Strapp <matt@mattstrapp.net> | 2023-09-14 13:42:45 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2023-09-14 13:42:45 -0500 |
commit | 549ec6e29d6054323dd619d620e65460d7575bcd (patch) | |
tree | 4ac1815388bc4e6d33744342e487cc94aa528ae0 /app | |
parent | Enable source maps (diff) | |
download | trinkets-549ec6e29d6054323dd619d620e65460d7575bcd.tar trinkets-549ec6e29d6054323dd619d620e65460d7575bcd.tar.gz trinkets-549ec6e29d6054323dd619d620e65460d7575bcd.tar.bz2 trinkets-549ec6e29d6054323dd619d620e65460d7575bcd.tar.lz trinkets-549ec6e29d6054323dd619d620e65460d7575bcd.tar.xz trinkets-549ec6e29d6054323dd619d620e65460d7575bcd.tar.zst trinkets-549ec6e29d6054323dd619d620e65460d7575bcd.zip |
Fix sourcemaps + typing
Diffstat (limited to '')
-rw-r--r-- | app/package.json | 3 | ||||
-rw-r--r-- | app/pnpm-lock.yaml | 7 | ||||
-rw-r--r-- | app/src/hooks.server.ts | 1 |
3 files changed, 10 insertions, 1 deletions
diff --git a/app/package.json b/app/package.json index 2c0e0da..379d87b 100644 --- a/app/package.json +++ b/app/package.json @@ -12,6 +12,7 @@ "@sveltejs/kit": "^1.25.0", "@tailwindcss/forms": "0.5.6", "@tailwindcss/typography": "0.5.10", + "@types/html-minifier-terser": "^7.0.0", "@types/node": "20.6.0", "@typescript-eslint/eslint-plugin": "^6.7.0", "@typescript-eslint/parser": "^6.7.0", @@ -35,7 +36,7 @@ }, "private": true, "scripts": { - "build": "vite build", + "build": "vite build && mv .svelte-kit/output/server/sw.js.map .svelte-kit/output/server/workbox-*.map build/", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "dev": "vite dev", diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml index e483b7b..4f11aeb 100644 --- a/app/pnpm-lock.yaml +++ b/app/pnpm-lock.yaml @@ -27,6 +27,9 @@ devDependencies: '@tailwindcss/typography': specifier: 0.5.10 version: 0.5.10(tailwindcss@3.3.3) + '@types/html-minifier-terser': + specifier: ^7.0.0 + version: 7.0.0 '@types/node': specifier: 20.6.0 version: 20.6.0 @@ -1802,6 +1805,10 @@ packages: resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} dev: true + /@types/html-minifier-terser@7.0.0: + resolution: {integrity: sha512-hw3bhStrg5e3FQT8qZKCJTrzt/UbEaunU1xRWJ+aNOTmeBMvE3S4Ml2HiiNnZgL8izu0LFVkHUoPFXL1s5QNpQ==} + dev: true + /@types/json-schema@7.0.12: resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} dev: true diff --git a/app/src/hooks.server.ts b/app/src/hooks.server.ts index 163f640..aaf2757 100644 --- a/app/src/hooks.server.ts +++ b/app/src/hooks.server.ts @@ -10,6 +10,7 @@ const minification_options = { ignoreCustomComments: [/^#/], minifyCSS: true, minifyJS: true, + minifyURLs: true, removeAttributeQuotes: true, removeComments: false, // some hydration code needs comments, so leave them in removeOptionalTags: true, |