A
A
Alexander2021-04-13 15:52:23
webpack
Alexander, 2021-04-13 15:52:23

How can I configure vue-cli to put files in the right folder when serving?

When executing npm run build, the application is built for production into the ./dist folder. But with npm run serve- webpack launches a local server and spins files there. Everything is cool, there is no access to them, but I need it.
I need to transfer finished files to other folders in the project. Every time I make a change in the code, I run the build and do what I need with the generated files through bash scripts.
Question: Is it possible to configure vue-cli so that when it executes serve, it puts files in a folder. So that you do not have to wait for the production assembly every time. In addition, they have to be done more than one in a row (don't ask). In principle, I do not even need a local server, so I would also like to turn it off. Searched and searched and did not find.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bodrych, 2021-04-13
@Aleksandr-JS-Developer

I think something like vue-cli-service build --mode development --watch
this would work. You can change the output folder with --dest
https://cli.vuejs.org/guide/cli-service.html#vue-c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question