Answer the question
In order to leave comments, you need to log in
How to change public folder in vue-cli 3?
On the server, all projects have the following folder structure: domain_name/public/index.html
, i.e. the root of each project is /public/
But vue-cli builds in /dist/ and uses /public/ as static copied to /dist/
The documentation describes how to change /dist/, but does not say how to change the /public folder / so I can replace /dist/ with /public/.
If there is a way to replace /public/ with another directory?
UPD: By chance, the eye fell on this moment in the documentation - it turns out that changing this directory is generally prohibited. What to do then?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question