0

I have a working webpack configuration.
Now I want to make a single plugin.

I tried this suggestion but no success.
Using a loader inside a webpack plugin

Varuzhan
  • 43
  • 7

1 Answers1

3

This was the solution for me

module.exports = class MyPlugin {
    constructor(options = {}) {
        this.options = options;
    }
    apply(compiler) {
        new OtherPlugin({}).apply(compiler);
    }
}
Varuzhan
  • 43
  • 7