Created
January 30, 2020 15:23
-
-
Save novaknole/ffa9a82989b0ac5736dfc16cb8cbcb43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestPlugin { | |
apply(compiler) { | |
compiler.hooks.afterEmit.tap('TestPlugin', (compilation) => { | |
let options = {}; // some options i will put here | |
let plugin = new SomePlugin(); // this will be webpack's plugin, not mine | |
compiler.apply(plugin); | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment