Disabled html min as it runs after precompress

This commit is contained in:
Jade Ellis
2024-04-28 22:13:22 +01:00
parent b905513423
commit a2013b5aaa
+14 -13
View File
@@ -16,21 +16,22 @@ const config = {
// If your environment is not supported or you settled on a specific environment, switch out the adapter. // If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters. // See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter:
htmlMinifierAdaptor( // Disabled html min as it runs after precompress
// htmlMinifierAdaptor(
adapter(), adapter(),
{ // {
pages: "build/prerendered/", // pages: "build/prerendered/",
minifierOptions: { // minifierOptions: {
minifyURLs: true, // minifyURLs: true,
// Because of CSP hashing // // Because of CSP hashing
minifyJS: false, // We can pass a function here // minifyJS: false, // We can pass a function here
collapseWhitespace: false, // collapseWhitespace: false,
sortAttributes: true, // sortAttributes: true,
sortClassName: true, // sortClassName: true,
removeRedundantAttributes: true // removeRedundantAttributes: true
} // }
}), // }),
csp: { csp: {
mode: "auto", mode: "auto",
directives: cspDirectives, directives: cspDirectives,