#!/usr/bin/env node

const chalk = require("chalk");
const cli = require("../cli/cli");

console.log(``);
console.log(`${chalk.black(chalk.bgYellow("  ~~~~~~~~~~  "))}`);
console.log(`${chalk.black(chalk.bgYellow("   🍫  kaba    "))}`);
console.log(`${chalk.black(chalk.bgYellow("  ~~~~~~~~~~  "))}`);
console.log(``);

console.log('Running webpack ...');
console.log();

if (cli.showHelp())
{
    // @todo implement
    console.log("show help");
    process.exit(0);
}
else if (cli.showVersion())
{
    // @todo implement
    console.log("show version");
    process.exit(0);
}

// set environment
process.env.NODE_ENV = cli.isDebug() ? '"development"' : '"production"';

// strip all other arguments
process.argv = process.argv.slice(0,2);

try
{
    require('webpack/bin/webpack');
}
catch (e)
{
    console.log(chalk`{red Webpack Error: ${e.message}}`);

    if (cli.isVerbose())
    {
        throw e;
    }
}

@@ -316,60 +316,8 @@
 );%0A%0A
-console.log('Running webpack ...');%0Aconsole.log();%0A%0A
 if (
@@ -689,16 +689,87 @@
 %0A%0Atry%0A%7B%0A
+    console.log(chalk%60Running %7Bcyan webpack%7D ...%60);%0A    console.log();%0A
     requ

Move webpack output into correct place