From c6700a9153f96d330f0a6636adaa616b03d232ee Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 15 Apr 2023 18:23:57 +0200 Subject: [PATCH] drop html-minifier --- package.json | 2 -- vite.config.ts | 15 +-------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/package.json b/package.json index fb0a324..bf430e3 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,7 @@ "@odit/license-exporter": "^0.0.11", "@svitejs/vite-plugin-svelte": "^0.11.1", "@tsconfig/svelte": "^1.0.10", - "@types/html-minifier": "^4.0.0", "axios": "^0.21.1", - "html-minifier": "^4.0.0", "prettier": "^2.2.1", "prettier-plugin-svelte": "^2.2.0", "release-it": "^14.5.1", diff --git a/vite.config.ts b/vite.config.ts index 0b6f2a2..ad590ac 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,19 +1,7 @@ import svelte from '@svitejs/vite-plugin-svelte'; import windiCSS from 'vite-plugin-windicss'; -import { minify } from 'html-minifier'; import { defineConfig } from 'vite'; // -const indexReplace = () => { - return { - name: 'html-transform', - transformIndexHtml(html) { - return minify(html, { - collapseWhitespace: true - }); - } - }; -}; - export default defineConfig(({ command, mode }) => { const isProduction = mode === 'production'; return { @@ -43,8 +31,7 @@ export default defineConfig(({ command, mode }) => { preprocess: [ // ] - }), - indexReplace() + }) ] }; });