Skip to content

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

Description

@mwittmann

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions