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

[REQUEST] Ignore comments & annotations #43

Open
fuhlig opened this issue Dec 15, 2017 · 1 comment
Open

[REQUEST] Ignore comments & annotations #43

fuhlig opened this issue Dec 15, 2017 · 1 comment

Comments

@fuhlig
Copy link

fuhlig commented Dec 15, 2017

Commented variables should not be parsed / ignored

Input:

$black: #000;
// $white: #fff;

Output:

{
  "variables": [
    {
      "name": "$black",
      "value": "#000",
      "compiledValue": "#000"
    },
    {
      "name": "$white",
      "value": "#fff",
      "compiledValue": "#fff"
    }
  ]
}

Expected:

{
  "variables": [
    {
      "name": "$black",
      "value": "#000",
      "compiledValue": "#000"
    }
  ]
}

Ignore variables with annotations (analogue to sections).
Proposal:

  • ignore single line: // @sass-export-ignore
  • ignore multiple lines (section):
// @sass-export-ignore="internals"
...
// @end-sass-export-ignore [optional]
@civan
Copy link
Member

civan commented Dec 15, 2017

Hi @fuhlig this was already in our plate #7 , but we discarded it since you can use your own @sass-export-section="internals" whenever you need it, event multiple times and then remove the node: "internals" if it is the case.
I still think it would be cool to have it.

thanks!

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

2 participants