From aade089ef8f7593b6d2176009d4099d8554d991f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 22 Aug 2020 01:57:29 +0200 Subject: [PATCH] Fix firefox bug? --- package.json | 2 +- preact.config.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f4e3137..eaac106 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "appuntiweb", - "version": "0.7.0", + "version": "0.7.1", "license": "AGPL-3.0-or-later", "scripts": { "start": "preact watch --template src/template.html", diff --git a/preact.config.js b/preact.config.js index c732d79..042427d 100644 --- a/preact.config.js +++ b/preact.config.js @@ -58,4 +58,10 @@ export default function (config, env, helpers) { }) ) } + + // https://github.com/preactjs/preact-cli/issues/710 + let critters = helpers.getPluginsByName(config, 'Critters')[0]; + if (critters) { + critters.plugin.options.preload = 'js' // or some other option + } };