K
K
koliane2020-03-19 19:16:54
JavaScript
koliane, 2020-03-19 19:16:54

How to run vue cli so it will track changes and update the file?

I am using vue cli. Those. installed with npm command install -g @vue/cli
It is necessary that when changing vue files or other related code, build files are automatically updated.

The changes are automatically applied if you run the command npm run serve, but in this case no build files are created at all.
the command npm run buildcreates files, but once, i.e. are not updated when the code changes.
when executing the command, npm run build --watcheverything is the same

. Tell me, what can be done so that changes are tracked and build files are updated?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-03-19
@koliane

You are not embarrassed by what buildwas done specifically for production, but servefor development?
PS - You need to change the commands in package.jsonorder to --watchwork, if you really need to.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question