Skip to content

Instantly share code, notes, and snippets.

@yowainwright
Created December 9, 2017 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yowainwright/67adaa4c16c1a386d671b4bad001652d to your computer and use it in GitHub Desktop.
Save yowainwright/67adaa4c16c1a386d671b4bad001652d to your computer and use it in GitHub Desktop.
Build function, used for a Webpack abstraction in the wild
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