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

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.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter:
htmlMinifierAdaptor(
// Disabled html min as it runs after precompress
// htmlMinifierAdaptor(
adapter(),
{
pages: "build/prerendered/",
minifierOptions: {
minifyURLs: true,
// {
// pages: "build/prerendered/",
// minifierOptions: {
// minifyURLs: true,
// Because of CSP hashing
minifyJS: false, // We can pass a function here
collapseWhitespace: false,
sortAttributes: true,
sortClassName: true,
removeRedundantAttributes: true
}
}),
// // Because of CSP hashing
// minifyJS: false, // We can pass a function here
// collapseWhitespace: false,
// sortAttributes: true,
// sortClassName: true,
// removeRedundantAttributes: true
// }
// }),
csp: {
mode: "auto",
directives: cspDirectives,