1

Let's say I have a file structure like:

Directories

I'd like webpack command to watch for changes in the src/functions.php and implement them in the dist/functions.php. Basically all it needs to do is copy and paste if there are any changes.

Is this something webpack is able to do? Do I need any loaders or plugins for that?

1 Answers1

1

You can use Copy Webpack Plugin for this use case.

Raphael Rafatpanah
  • 19,082
  • 25
  • 92
  • 158