Roman Podlinov
Roman Podlinov

Reputation: 24954

Babel –watch or webpack --watch does not work for me in the DOCKER/LXD container

I found an annoying issue:

If I change my code in the IDE and babel works in the container (like DOCKER or LXD) it ignores my changes from IDE.

For example

babel src/*.js --out-file=public/scripts/app.js --presets=env,react --watch 

On the other hand, it works properly if I make changes via an editor in the container.

Upvotes: 0

Views: 221

Answers (1)

Roman Podlinov
Roman Podlinov

Reputation: 24954

Usually you have this issue on Linux (Mac users do not have this issue). The following solution works for babel and webpack:

CHOKIDAR_USEPOLLING=true babel src/*.js --out-file=public/scripts/app.js --presets=env,react --watch

Upvotes: 1

Related Questions