tighten/lambo

Refactor silencing of npm during asset compilation

jonsugar opened this issue · 0 comments

Requested change in app/Actions/CompileAssets.php:

Change this:

public function __invoke()
{
    app('console-writer')->logStep('Compiling project assets');

    $this->silentDevScript->add();
    ⁝
    $this->silentDevScript->remove();

    app('console-writer')->success('Project assets compiled successfully.');
}

to this:

public function __invoke()
{
    app('console-writer')->logStep('Compiling project assets');

    $this->npm->silence();
    ⁝
    $this->npm->unsilence();

    app('console-writer')->success('Project assets compiled successfully.');
}