We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export default defineConfig({ publicPath: process.env.NODE_ENV === 'production' ? './' : '/', npmClient: 'npm', plugins: ['@umijs/plugins/dist/locale', '@umijs/plugins/dist/model'], history: { type: 'hash' }, favicons: ['/favicon.ico'], routes: [ { path: '/', component: '@/components/App', routes: [ ... ], }, { path: '/analytices', component: 'analytices', }, ], locale: { baseNavigator: false, default: 'en-US', }, model: {}, })
The text was updated successfully, but these errors were encountered:
配置 /favicon.ico 表示会从这个位置加载,但这个文件本身是不存在的,你需要把它放到 public 里才能访问到。
/favicon.ico
public
Sorry, something went wrong.
No branches or pull requests
export default defineConfig({
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
npmClient: 'npm',
plugins: ['@umijs/plugins/dist/locale', '@umijs/plugins/dist/model'],
history: { type: 'hash' },
favicons: ['/favicon.ico'],
routes: [
{
path: '/',
component: '@/components/App',
routes: [
...
],
},
{
path: '/analytices',
component: 'analytices',
},
],
locale: {
baseNavigator: false,
default: 'en-US',
},
model: {},
})
Context
The text was updated successfully, but these errors were encountered: