Created
August 16, 2016 16:15
-
-
Save neko-fire/6372ab712640ae7e0d5242fdf92c5e0b to your computer and use it in GitHub Desktop.
adding timestamp to webpack --watch
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
// add this to webpack config in plugin section | |
plugins: [ | |
function() { | |
this.plugin('watch-run', function(watching, callback) { | |
console.log('Begin compile at ' + new Date()); | |
callback(); | |
}) | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment