D
D
Denis Bukreev2018-11-25 18:31:10
Vue.js
Denis Bukreev, 2018-11-25 18:31:10

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

2 answer(s)
J
JorJeG, 2018-11-25
@JorJeG

Perhaps this is what you mean

W
webfaker, 2021-08-04
@webfaker

https://www.reddit.com/r/vuejs/comments/9iqenb/vue...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question