Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Sass Syntax #103

Closed
raneio opened this issue Jun 9, 2017 · 0 comments
Closed

Sass Syntax #103

raneio opened this issue Jun 9, 2017 · 0 comments

Comments

@raneio
Copy link

raneio commented Jun 9, 2017

Expected behavior

<style lang="sass" scoped>
$color: blue
.test
  background-color: $color
</style>

Actual behavior

<style lang="sass" scoped>
$color: blue;
.test {
  background-color: $color;
}
</style>

Steps to reproduce the behavior

If you set lang="sass" it should use sass syntax, not scss syntax. In my opinion, it should use "indentedSyntax: true" automatically when used lang="sass".

Now you can fix it adding follows lines to rollup.config.js

vue({
  scss: {
    indentedSyntax: true
  },
}),
@znck znck added the bug label Jun 9, 2017
@znck znck added this to TODO in Roadmap Jun 15, 2017
@znck znck added this to the Version 2.4 milestone Jun 22, 2017
znck added a commit to znck/rollup-plugin-vue that referenced this issue Jul 24, 2017
@znck znck closed this as completed in #113 Jul 24, 2017
znck added a commit that referenced this issue Jul 24, 2017
* test: indented sass syntax

* fix: use indented sass syntax when lang="sass"

Fix #103
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

No branches or pull requests

2 participants