Skip to content

Worker npm_encore_watch watch a file #407

@ellmout

Description

@ellmout

Hi,

When working with npx encore dev --watch as a worker, when you change webpack.config.js, you have to restart the worker.

So i config my worker as this :

  npm_encore_watch:
     cmd: ['npx', 'encore', 'dev', '--watch']
     watch: ['webpack.config.js']

To watch for modification of webpack.config.js and restart the worker when i update it.

But it doesn't work !

I have a worker for messenger :

  messenger_consume_async:
     cmd: ['symfony', 'console', 'messenger:consume', 'async']
     watch: ['config', 'src', 'templates', 'vendor']

It works great but only watch dir !

Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions