Created
December 9, 2017 01:40
-
-
Save yowainwright/67adaa4c16c1a386d671b4bad001652d to your computer and use it in GitHub Desktop.
Build function, used for a Webpack abstraction in the wild
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
const build = () => { | |
return new Promise((resolve, reject) => { | |
compiler.run((err, stats) => { | |
if (err) return reject(err) | |
resolve(stats) | |
}) | |
}) | |
} | |
export { build } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment