Skip to content
New issue

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

在window环境下 多页面方式配置时路径解析有问题 #83

Open
SKT1yang opened this issue Jun 24, 2022 · 0 comments
Open

在window环境下 多页面方式配置时路径解析有问题 #83

SKT1yang opened this issue Jun 24, 2022 · 0 comments

Comments

@SKT1yang
Copy link

配置如下(vben改造):
const htmlPlugin: PluginOption[] = createHtmlPlugin({
minify: isBuild,
pages: [
{
filename: 'index.html',
template: 'index.html',
injectOptions: {
// Inject data into ejs template
data: {
title: VITE_GLOB_APP_TITLE,
},
// Embed the generated app.config.js file
tags: isBuild
? [
{
tag: 'script',
attrs: {
src: getAppConfigSrc(),
},
},
]
: [],
},
},
],
});
22935922bb050b4183057c03e0d6e59a

window环境下 都配置index.html 一个是/index 一个是c/User/**/index.html 导致报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant