Allow user to configure the htmlPath (currently public/index.html)
See original GitHub issueWhat problem does this feature solve?
I’d like to combine my vue frontend in the same project as my backend which is already making use of the /public folder. It would be nice if I could configure the path to serve out of a folder of my chosing, like /html or something.
What does the proposed API look like?
I believe it could be added to vue.config.js like this:
// where to serve dev files
devDir: 'public',
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
How to redirect the home page of the site to /public/index.html ...
html manually, the site work correctly. The question is: how can force the site to direct to the /public/index.html path when I enter...
Read more >How do I fix the permissions on my html directory and files?
To fix the permissions on your html directory on Eniac: Visit Personal Homepage. Check the Configure My Account for Webpages box. Click the...
Read more >How to change the Laravel public folder path
In this post will show how to change the Laravel public folder path (the default path to publish public content, including the index)...
Read more >HTML and Static Assets - Vue CLI
For new projects, it is now recommended to use create-vue to ... The file public/index.html is a template that will be processed with ......
Read more >Staticfile Buildpack | Cloud Foundry Docs
This topic describes how to configure and use the Staticfile buildpack. ... To find which version of NGINX the current Staticfile buildpack ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nevermind!
I just figured out how to do it configuring webpack directly. In vue.config.js:
The path seemed to be hard coded in
/node_modules/@vue/cli-service/lib/config/app.js
so I assumed I could not configure it, but somehow this code still works.I am also using laravel on the backend. I changed what I originally had done as seen earlier on this thread. What I ended up doing is putting laravel in the root folder and the whole frontend in a folder called vue. Then when it builds, it dumps everything in public/assets. Then for hot code on dev, you need to use a proxy URL. Not sure if it’s the easiest way to do it, but it works.
Here is my vue/vue.config.js file if it helps: