Created
February 20, 2019 12:34
-
-
Save jeemyeong/082b86c3ec154be250af9f8795b92d5c to your computer and use it in GitHub Desktop.
webpack plugin
This file contains hidden or 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 HelloWorldPlugin { | |
| apply(compiler) { | |
| compiler.hooks.done.tap('Hello World Plugin', (stats) => { | |
| console.log('Hello World!'); | |
| }); | |
| } | |
| } | |
| config.plugins = [ | |
| function() { | |
| this.hooks.done.tap('ASSET_FINGERPRINT', (stats) => { | |
| console.log('Hello World!'); | |
| }) | |
| }, | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment