diff --git a/packages/fes-build-webpack/src/plugins/commands/webpackConfig/index.js b/packages/fes-build-webpack/src/plugins/commands/webpackConfig/index.js index 5075e4a2..eb2fef3c 100644 --- a/packages/fes-build-webpack/src/plugins/commands/webpackConfig/index.js +++ b/packages/fes-build-webpack/src/plugins/commands/webpackConfig/index.js @@ -280,7 +280,6 @@ export default async function getConfig({ api, cwd, config, env, entry = {}, mod const memo = webpackConfig.toConfig(); memo.infrastructureLogging = { ...memo.infrastructureLogging, - level: 'verbose', }; memo.output = { ...memo.output, diff --git a/packages/fes-preset-built-in/src/plugins/generateFiles/fes/defaultContainer.tpl b/packages/fes-preset-built-in/src/plugins/generateFiles/fes/defaultContainer.tpl index b8ada01e..3d836cf3 100644 --- a/packages/fes-preset-built-in/src/plugins/generateFiles/fes/defaultContainer.tpl +++ b/packages/fes-preset-built-in/src/plugins/generateFiles/fes/defaultContainer.tpl @@ -1,3 +1,4 @@ import { defineComponent } from 'vue'; +import { RouterView } from '{{{ runtimePath }}}'; export default defineComponent(() => () => ()); diff --git a/packages/fes-preset-built-in/src/plugins/generateFiles/fes/index.js b/packages/fes-preset-built-in/src/plugins/generateFiles/fes/index.js index 9ced85a3..ad65a3c7 100644 --- a/packages/fes-preset-built-in/src/plugins/generateFiles/fes/index.js +++ b/packages/fes-preset-built-in/src/plugins/generateFiles/fes/index.js @@ -61,7 +61,9 @@ export default function (api) { const defaultContainerName = 'defaultContainer'; api.writeTmpFile({ path: `${defaultContainerName}.jsx`, - content: readFileSync(join(__dirname, `./${defaultContainerName}.tpl`), 'utf-8'), + content: Mustache.render(readFileSync(join(__dirname, `./${defaultContainerName}.tpl`), 'utf-8'), { + runtimePath, + }), }); }); } diff --git a/packages/fes-template/.fes.js b/packages/fes-template/.fes.js index 82c2d81d..e821a4df 100644 --- a/packages/fes-template/.fes.js +++ b/packages/fes-template/.fes.js @@ -5,7 +5,6 @@ export default { define: { __DEV__: false }, - publicPath: './', html: { title: '海贼王' },