Skip to content

Instantly share code, notes, and snippets.

@jeemyeong
Created February 20, 2019 12:34
Show Gist options
  • Select an option

  • Save jeemyeong/082b86c3ec154be250af9f8795b92d5c to your computer and use it in GitHub Desktop.

Select an option

Save jeemyeong/082b86c3ec154be250af9f8795b92d5c to your computer and use it in GitHub Desktop.
webpack plugin
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