1.2.0 • Published 7 years ago
webpack-promise v1.2.0
weebpack-promise
Webpack as a Promise
Usage
import webpack from "webpack-promise";
webpack({
/* webpack config */
}, {
/* other options, defaults */
log: true, /* log results */
stats: {
/* options for stats.toString() */
colors: true,
},
});
Error Handling
webpack(/* see usage */).catch(function (err)
{
if (err.err())
/* runtime error */
else if (err.stats().hasErrors())
/* compilation error */
else if (err.stats().hasWarnings())
/* compilation warning */
/* see webpack api for details */
});
1.2.0
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago
1.0.0-rc.1
7 years ago
1.0.0-rc.0
7 years ago