drop html-minifier

This commit is contained in:
Philipp Dormann 2023-04-15 18:23:57 +02:00
parent 60d51f39bf
commit c6700a9153
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314
2 changed files with 1 additions and 16 deletions

View File

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

View File

@ -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()
})
]
};
});