From 09ce6140e8c7c28f3b9b2a4aba0f9d2d5110a9b2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 2 Sep 2020 16:53:36 +0200 Subject: [PATCH] Fix development server --- preact.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/preact.config.js b/preact.config.js index 2d0dac3..997388a 100644 --- a/preact.config.js +++ b/preact.config.js @@ -40,13 +40,6 @@ export default function (config, env, helpers) { } ); - config.plugins[16].patterns.shift(); - config.plugins[16].patterns.shift(); - config.plugins[16].patterns.push({ - from: "assets", - to: "" - }); - config.plugins.push( new DefinePlugin({"process.env.RELEASE": `"${process.env.npm_package_version}"`}) ); @@ -64,6 +57,13 @@ export default function (config, env, helpers) { release: process.env.npm_package_version, }) ) + + config.plugins[16].patterns.shift(); + config.plugins[16].patterns.shift(); + config.plugins[16].patterns.push({ + from: "assets", + to: "" + }); } // https://github.com/preactjs/preact-cli/issues/710