B
B
BonBon Slick2019-09-13 09:19:38
JavaScript
BonBon Slick, 2019-09-13 09:19:38

Yarn watch crashes the system, loading the CPU at 100%?

There is an endless build, that is, the assembly was 100% complete and so on in a circle after the first change.

"watch": "watch 'cross-env NODE_ENV=development webpack --config build/webpack.config.dev.js --hide-modules --progress'"

  "devDependencies": {
    "watch": "^1.0.2",

The webpack command itself works as it should.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2019-09-13
@BonBonSlick

Don't you think that you didn't do the watch mode correctly?
Webpack has a built-in --watch, or webpack-dev-server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question