D
D
danilr2019-07-11 08:14:50
webpack
danilr, 2019-07-11 08:14:50

How to configure --watch in webpack in Vue?

The project is built on Vue-cli, but there is no script for npm run watch, but only for run serve.
At the root is the vue.config.js config document.
How to make watch work? (e.g. when installing laravel+vue it comes out of the box)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Basharin, 2019-07-13
@danilr

Hello!)
--watch is available only for 'vue-cli-service build'
If you need to run the build in development mode, set the extra. flag:
vue-cli-service build --watch --mode development

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question