-
-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] allow copy files before and after webpack build #195
Comments
Sry, this plugin is an integration of |
But you could hook into the compilation process before entrypoints are resolved. I ended up doing it like this: const EventHooksPlugin = require('event-hooks-webpack-plugin');
const fs = require('fs-extra')
//in webpack plugins
new EventHooksPlugin({
'before-run': (compilation, done) => {
console.log('Copying source files to compiled')
fs.copy('src', 'compiled', done);
}
}), |
Sry, I overread |
@light24bulbs Thank you, your comment helped out a lot! |
It would be nice to have an |
PR welcome |
This comment has been minimized.
This comment has been minimized.
possible workaround is to use WebpackShellPlugin |
My entry point is inside the directory that has been copied. This plugin seems to use the webpack file emit at the end to output the files. Is there a way to do this sooner? Or to somehow target an entrypoint inside the copied directory?
The text was updated successfully, but these errors were encountered: