Add a bookmarklet maker and improve node deployment (from today and last night)

This commit is contained in:
Jade Ellis
2024-04-10 15:13:16 +01:00
parent 255767c10b
commit e3c4eec7cf
20 changed files with 1057 additions and 252 deletions
+16 -1
View File
@@ -15,7 +15,22 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// 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(adapter()),
adapter:
htmlMinifierAdaptor(
adapter(),
{
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
}
}),
csp: {
mode: "auto",
directives: cspDirectives,