Revert to static JS site (Svelte built, but no CSR); Optimize images
This commit is contained in:
@@ -22,8 +22,10 @@ function getFiles(dir, ext, files = []) {
|
||||
const beasties = new Beasties({
|
||||
path: buildDir,
|
||||
preload: 'default',
|
||||
logLevel: 'warn'
|
||||
});
|
||||
logLevel: 'warn',
|
||||
inlineThreshold: 50 * 1024, // inline any stylesheet < 50KB
|
||||
minimumExternalSize: 50 * 1024 // inline any leftover < 50KB
|
||||
});
|
||||
|
||||
async function main() {
|
||||
const htmlFiles = getFiles(buildDir, '.html');
|
||||
|
||||
Reference in New Issue
Block a user