UNPKG

xea-cli-node-service

Version:
23 lines (22 loc) 554 B
const webpack = require("webpack"); const lib = require("../lib"); module.exports = async () => { process.env.NODE_ENV = "production"; return new Promise((resolve, reject) => { webpack(require("../webpack.config")).run((err, stats) => { const statsString = stats.toString({ colors: true, all: false, hash: true, errors: true, timings: true, version: true, builtAt: true, chunks: true }); lib.clearConsole(); lib.echoString(statsString, stats, "", ""); resolve(true); }); }); };