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
配置中包含base的情况下,多页配置就会失效。然后所有的页面,都会指向index.html
The text was updated successfully, but these errors were encountered:
plugins: [ react({}), createHtmlPlugin({ minify: false, viteNext: true, pages: [ { entry: './src/entry/search.jsx', filename: 'search.html', template: './index.html', injectOptions: { data: { title: '検索結果' }, }, }, { entry: './src/entry/search_popup.jsx', filename: 'search_popup.html', template: './index.html', injectOptions: { data: { title: '2検索結果' }, }, }, ], }) ], build: { rollupOptions: { input: { search: './src/entry/search.jsx', search_popup: './src/entry/search_popup.jsx' } } }, 当我使用这个配置配置多页的时候,总是第一个配置生效,即使访问第二个页面路由,也是返回第一个配置的结果。而且,使用任何名称非index的html模版,都不会生效。是不是姿势不对,补充完毕
Sorry, something went wrong.
同上
No branches or pull requests
配置中包含base的情况下,多页配置就会失效。然后所有的页面,都会指向index.html
The text was updated successfully, but these errors were encountered: