-
Notifications
You must be signed in to change notification settings - Fork 35
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
Is there a way to assign a page variable to one index.html file and use it? #18
Comments
https://github.com/IndexXuan/vite-plugin-html-template/blob/main/src/lib/options.ts#L40 maybe you can try vite-plugin-html-template, works perfect with vite-plugin-mpa and recommended to use. |
Thank you. I used vite-plugin-html-template and it works fine. However, an error occurred when calling the [yarn build] command. After moving index.html to the public folder, I removed everything else. I can't find a solution. please help.
|
yes, use I dont know the errors. maybe you can see the examples and find the different. |
@IndexXuan There is no difference from the link setting you answered. By comparison, I am the js config and you are the typescript config. um... Is there no way? I didn't know it would get blocked in the [yarn build]... ;( |
if you cannot provide a mini repro demo. I cannot help. |
@IndexXuan ok.! Yes. Please wait. Thank u. |
@IndexXuan I'm sorry to have kept you waiting. mini repo => https://github.com/JangCool/vite-mpa |
@IndexXuan Don't you have the same error? I'm wondering that about the processing situation. If not, I'll try use the index.html file individually. |
Is there a way to assign a page variable to one index.html file and use it?
I want to make only one and use it without making many index.html files.
Is there any way to use the variable?
In vue.config.js, it is used as follows:
The text was updated successfully, but these errors were encountered: