Answer the question
In order to leave comments, you need to log in
How to use Vue cli?
Background:
Before that, I didn’t use any assemblers and in general I’m a backend worker. I made components on vue but just connected them directly.
https://cli.vuejs.org/ru/guide/installation.html - read everything here. So much about everything and nothing about usage :(
What I think the assembler should do at the most primitive level:
Turn my *.vue files in a specific folder into two script.js files, style.css, which I can link to page
What I hope to read in the documentation:
Run the dowell command in the directory with your vue files and there will be two files script.js, style.css, include them on the page.
But in the documentation I read about creating a "project", nowhere at the same time I see a definition of what is meant here by a project, what I will get as a result and what it is for and what it will give.
A lot about how you can configure and what to change in the project. More about how to update it.
And nothing about how the hell do I see this project just in the browser.
Is there a step-by-step instruction somewhere to understand with an example?
Answer the question
In order to leave comments, you need to log in
Vue cli is not only a faucet.
The easiest way is to do
npm install -g @vue/cli
vue create helloWorld Go through the
settings
Go to the created folder and run
npm install
npm run serve
If you want to see the built files, then do npm run build. This command will collect and minify js and css files into the dist folder.
And in the public folder your html document will be located, in which the paths for js and css will be substituted.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question