Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress parsing errors, or send them to a file? #72

Open
mwittmann opened this issue Jun 24, 2021 · 0 comments
Open

Suppress parsing errors, or send them to a file? #72

mwittmann opened this issue Jun 24, 2021 · 0 comments

Comments

@mwittmann
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant