rebeccasmith_me
rebeccasmith_me

Reputation: 41

Move files from the build folder (after build) to a different folder with a relative path - Webpack

I'm trying to switch from grunt to webpack. In grunt, we have a task that copies folders from build to a different folder using a relative path. This tasks runs after all the files have been built and are in the build folder. We do this for dev purposes.

I cannot seem to find a plugin that will copy folders from build to a different folder. I have seen the copy-webpack-plugin, but it seems it only moves files/folders to the build folder. Does anyone have any suggestions? Thank you.

Upvotes: 1

Views: 2484

Answers (1)

Danila
Danila

Reputation: 18476

You can try https://github.com/gregnb/filemanager-webpack-plugin, it has onEnd option which allows to do stuff after build

Upvotes: 2

Related Questions