Skip to content

Run Before Plugin Apply #11

@amidesfahani

Description

@amidesfahani

I am using this package to make file names with hash.
but the problem is i want to upload files to S3 Server but your plugin runs after webpackconfig plugins!

here is my plugin apply method:

apply(compiler) {
        compiler.plugin('after-emit', (compilation, cb) => {
            this.validateOptions(compilation, cb)
            this.getAssets(compilation)
                .then(files => this.filterAllowedAssets(files))
                .then(files => this.uploadAssets(files))
                .then(() => this.filterAllowedDirectories())
                .then(directories => this.uploadDirectories(directories))
                .then(() => cb())
                .catch(e => this.handleErrors(e, compilation, cb));
        });
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions