diff --git a/.umirc.ts b/.umirc.ts index 218215f..845c261 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -4,4 +4,5 @@ export default defineConfig({ title: 'XTools', base: '/XTools/', publicPath: '/XTools/', + exportStatic: {}, }); \ No newline at end of file diff --git a/src/.umi/core/plugin.ts b/src/.umi/core/plugin.ts index 1db8c02..e1d194f 100644 --- a/src/.umi/core/plugin.ts +++ b/src/.umi/core/plugin.ts @@ -1,7 +1,8 @@ // @ts-nocheck // This file is generated by Umi automatically // DO NOT CHANGE IT MANUALLY! -import * as Plugin_0 from '@@/core/helmet.ts'; +import * as Plugin_0 from '@@/core/exportStaticRuntimePlugin.ts'; +import * as Plugin_1 from '@@/core/helmet.ts'; import { PluginManager } from 'umi'; function __defaultExport (obj) { @@ -14,6 +15,10 @@ export function getPlugins() { return [ { apply: Plugin_0, + path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/exportStaticRuntimePlugin.ts', + }, + { + apply: Plugin_1, path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/helmet.ts', }, ];