1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-26 09:54:19 +00:00

Fix development server

This commit is contained in:
Steffo 2020-09-02 16:53:36 +02:00
parent a8ee623ea8
commit 09ce6140e8

View file

@ -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( config.plugins.push(
new DefinePlugin({"process.env.RELEASE": `"${process.env.npm_package_version}"`}) 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, 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 // https://github.com/preactjs/preact-cli/issues/710