Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Formating of sass in a .vue file #8

Open
treforcoster opened this issue Sep 26, 2016 · 8 comments
Open

Formating of sass in a .vue file #8

treforcoster opened this issue Sep 26, 2016 · 8 comments

Comments

@treforcoster
Copy link

treforcoster commented Sep 26, 2016

Any chance of some improved Sass support in a .vue file.
Am able to use it but formatting is awful and breaks code.

@Nes-si
Copy link

Nes-si commented Sep 30, 2016

@treforcoster
you can use this syntax:
<style lang="sass" rel="stylesheet/sass">

@se-panfilov
Copy link

That syntax a bit weird ( I mean rel="stylesheet/sass" not really supposed to be here).
vue-for-idea plugin don't need such declaration btw.

But I want to recommend this plugin over vue-for-idea on StackOverFlow here, because vue-for-idea have shity side-effect.

Can you fix this issue?

@hedii
Copy link

hedii commented Oct 9, 2016

IDE plugins should not change the way we code, rel="stylesheet/sass" is not a solution

@wujekbogdan
Copy link

@Nes-si

This is not a solution. Even when these attributes are present on a <style> tag then scss formatting rules are ignored. The code should be formatted based on global language-specific rules.

I have 2 spaces set for scss language, but scss code in *.vue files is indented with 4 spaces.

@callumacrae
Copy link

Vote on this :D https://youtrack.jetbrains.com/issue/WEB-19082

@iloginow
Copy link

rel="stylesheet/..." is not a solution at all if you're using postcss <style lang="postcss">!

@callumacrae
Copy link

@iloginow there's an official jetbrains plugin now, check it out: https://plugins.jetbrains.com/plugin/9442-vue-js

@iloginow
Copy link

@callumacrae it looks very buggy just yet. It recognizes neither '@/components/...' import syntax for .vue files nor data object parameters usage in templates. Not to mention that JetBrains support for popular postcss plugins is very poor. It doesn't recognize variables for example. Unfortunately, I don't really see any alternative to vscode for my Vue stack right now...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants