K
K
KoystrubVS2019-05-12 20:20:43
SSH
KoystrubVS, 2019-05-12 20:20:43

How to properly organize the work of Visual Studio Code with the site?

Not so long ago I got acquainted with VSC, before that I worked in notepad ++. The situation is this.
There is a project on vue.js+vue cli with a template and //vue.config.js. - analogue of webpack
Roughly speaking, *.vue files, and after yarn build compilation into 3 ready-made files.
And I can’t figure out how to set up this compilation and / or test launch immediately on the hosting with the site?
Those. run yarn run serve and the launch will be, for example, on site.ru/app Run
yarn build serve and the files are compiled on site.ru/start_app/js
I don’t understand much and don’t understand much, if I wrote something wrong, correct it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Crazy Citizen, 2019-05-12
@Markizzio

Have a nice evening, if I understood you correctly, then you created a vue-cli project in which you create an application based on single-file components, if so, then you don’t really need to worry about building the project at all, webpack will do everything itself and it’s better for no reason interfere. While you are developing the project, you can use the yarn run serve command, this will be enough, just run it in a separate terminal and work with the project further, if you decide to deploy, so to speak, there are many options, someone builds the project via build, someone hangs the project using pm2 yarn run prod and that's it. There is someone here, but yarn run serve is enough for work and good luck to you)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question