I am very new to Vue and node and I am trying to insert a global value in my project but to do so I want to put my index.html
in a public dir.
I first create a project, but the public src was not created, and I can run it with:
$ npm run dev
If I create the public dir and put the index.html
into it, I got an fatal error (without any other message) when I run $ npm run dev
.
So I installed @vue/cli-service
with node, by $ npm install --save @vue/cli-service
but nothing change, I have also try to find vue.config.js
, that is mentioned in this question, but I didn't find it.
(In my package.json there is this dependecies:
"@vue/cli-service": "^3.0.0",
)
What am I doing wrong? Thank you
PS: What I am trying to do is to use this and add BAse_URL in my index File, but before that, If I put index.html
in the public dir I got the error