Disabled html min as it runs after precompress
This commit is contained in:
parent
b905513423
commit
a2013b5aaa
1 changed files with 14 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue