postalservice14 / vuejs-plugin

[DEPRECATED] Vue.js features for the Intellij Platform (WebStorm, RubyMine, Intellij, etc)
139 stars 20 forks source link

Vue component support for SASS/SCSS is flaky #14

Open cfv1984 opened 7 years ago

cfv1984 commented 7 years ago

The stylesheets seem confused about by using mixins, imports, and I get all kinds of wrong hints like "} expected" when using @imports.

Can anyone please point me in the right direction of how to help fixing this?

romangit commented 7 years ago

HI, @cfv1984 You can use workaround rel="stylesheet/scss" in your .vue components . Example

<style lang="scss" rel="stylesheet/scss">
    @import 'reset';

    body {
      font: 100% Helvetica, sans-serif;
      background-color: #efefef;
    }
</style>
melanholly commented 7 years ago

@romangit This workaround should be added to the documentation or the Readme because it a real saver

Edit: Added Pull request with the updated info