question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support @include for scss code

See original GitHub issue

At the moment the plugin can change a position of @include rule for scss code which is not safe and can lead to a wrong result. Example: Input

a {
 @include bla;

 color: red;
 display: block;
}

Output

a {
  display: block;

  color: red;
  @include bla;
}

It’d be really good to preserve the position of @include rule.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
boccobcommented, Jan 11, 2018

Works great. Thank you!

0reactions
Siilwyncommented, Jan 11, 2018

All right, thank you for testing! I have published the change under under version 3.0.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mixin and @include - Sass
Mixins allow you to define styles that can be re-used throughout your stylesheet. They make it easy to avoid using non-semantic classes like...
Read more >
How to Use Sass with CSS - freeCodeCamp
Sass is a CSS preprocessor that helps you manage tasks in large projects where the style sheets get larger, you have a number...
Read more >
CSS, SCSS, and Less support in Visual Studio Code
For this walkthrough, let's use either the sass or less Node.js module. Note: If you don't have Node.js and the npm package manager...
Read more >
supports - CSS: Cascading Style Sheets - MDN Web Docs
The @supports CSS at-rule lets you specify CSS declarations that depend on a browser's support for CSS features. Using this at-rule is ...
Read more >
Sass @mixin and @include - W3Schools
The @mixin directive lets you create CSS code that is to be reused throughout the website. The @include directive is created to let...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found