Skip to content

Instantly share code, notes, and snippets.

@jprivillaso
Created December 10, 2017 20:33
Show Gist options
  • Save jprivillaso/c49dc5017e67e894022a7398712cd9eb to your computer and use it in GitHub Desktop.
Save jprivillaso/c49dc5017e67e894022a7398712cd9eb to your computer and use it in GitHub Desktop.
const webpack = require("webpack");
webpack({
// Configuration Object
}, (err, stats) => {
if (err || stats.hasErrors()) {
// Handle errors here
}
// Done processing
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment