Add helper function.

This commit is contained in:
Dillon Kearns 2019-08-22 05:46:41 -07:00
parent 7a68a8602d
commit 70feacd32a

View File

@ -98,6 +98,11 @@ function roundToOneDecimal(n) {
return Math.round(n * 10) / 10;
}
function printProgress(progress, message) {
process.stdout.clearLine();
process.stdout.cursorTo(0);
process.stdout.write(`${progress} ${message}`);
}
function webpackOptions(production, routes, { debug, manifestConfig }) {
const common = {
entry: { hello: "./index.js" },