We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example
$var: /* comment 1 */ all /* comment 2 */ !import /* comment 3 */ ; /* comment 4 */
Parse as
Declaration { raws: { before: '', between: ': /* comment 1 */ ', important: ' !important /* comment 3 */ ', value: { value: 'all ', raw: 'all /* comment 2 */' } }, type: 'css-decl', source: { start: { line: 1, column: 1 }, input: Input { css: '$var: /* comment 1 */ all /* comment 2 */ !important /* comment 3 */ ; /* comment 4 */\n', id: '<input css 1>' }, end: { line: 1, column: 70 } }, prop: '$var', important: true, value: 'all ' }
It should be easy for implement, if you accept i will do PR.
Use case - for prettier, don't eat comment and don't parse inside package. Thanks!
The text was updated successfully, but these errors were encountered:
We can set Declaration#raws.scssGlobal and scssDefault if property name is started with $.
Declaration#raws.scssGlobal
scssDefault
$
I think it will be better to not remove !global from value (in this case CSS stringifier will stringify it back).
!global
value
PR is welcome :).
Sorry, something went wrong.
@ai we add !global when have flag scssGlobal, maybe we can add value have with global and add scssValue without !global ?
scssGlobal
global
scssValue
Yeap, raws.scssValue is good idea.
raws.scssValue
No branches or pull requests
Example
Parse as
It should be easy for implement, if you accept i will do PR.
Use case - for prettier, don't eat comment and don't parse inside package. Thanks!
The text was updated successfully, but these errors were encountered: