Brunch set LOGGY_STACKS = true

I am developing a brunch application. I am new to this, and to track the error I have to enable LOGGY_STACKS = true. How can I customize it?

Stack trace was suppressed. Run with `LOGGY_STACKS=true` to see the trace.
+4
source share
2 answers

If you do not want to “constantly” change your system variables and influence other Brunch-based projects, you can use the command setto define your NPM scriptsin package.json, and then the &&combinator and command brunch.

This method should work on both Unix and Windows computers.

// example package.json
{
  "scripts": {
    "start": "set LOGGY_STACKS=true && brunch watch --server",
    "serve": "npm run start",
    "build": "brunch b -p --env production",
    "clean": "rm -rf public dist"
  }
}

start stop , NPM .

+1

Windows, System Environment. System/Computer:

  • " ", " ".
  • " " (. ).

enter image description here

  • ....

    >
  • , , " YOUR_USER_NAME", LOGGY_STACKS true .

enter image description here

  • , /, , , .

; , .

+3

All Articles