sass-export icon indicating copy to clipboard operation
sass-export copied to clipboard

Suppress parsing errors, or send them to a file?

Open mwittmann opened this issue 4 years ago • 0 comments

Is there a way to either discard parse errors or send them to a file with, say, a -e option (similarly to the -o option)?

My use case is that I'm using sass-export in "prebuild" and "preserve" NPM scripts in my package.json:

  "scripts": {
    ...
    "preserve": "sass-export ./src/styles/variables.scss -o ./src/styles/sassvariables.json",
    "serve": "vue-cli-service serve",
    "prebuild": "sass-export ./src/styles/variables.scss -o ./public/assets/sassvariables.json",
    "build": "vue-cli-service build",
    ...
  }

sass-export generates a perfectly find sassvariables.json file for me, but also spits out many parsing errors to the console. While I can safely ignore these messages for my purposes, I don't know of a way to suppress them from the console to clean up the build and serve steps.

mwittmann avatar Jun 24 '21 02:06 mwittmann