Skip to content

Commit c4f779e

Browse files
sinemacula-benMikaAK
authored andcommitted
Change the webpack trigger (#131)
Change the webpack event that triggers the S3 upload. This should allow for assets generated by 'non-webpack' scripts in the webpack build process to also be included in the upload. This also fixes an issue for people that use this plugin with Laravel Mix.
1 parent 2fc4d65 commit c4f779e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/s3_plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = class S3Plugin {
8888
compiler.options.output.context ||
8989
'.'
9090

91-
compiler.hooks.afterEmit.tapPromise(packageJson.name, async(compilation) => {
91+
compiler.hooks.done.tapPromise(packageJson.name, async(compilation) => {
9292
var error
9393

9494
if (!hasRequiredUploadOpts)

0 commit comments

Comments
 (0)