Scss compiler plugin for altruistiq:vue3 maintained by Altruistiq. Uses dart-sass for performance and node-sass-magic-importer to resolve @imports
, enabling you to be creative with imports.
meteor add altruistiq:vue-sass
<style lang="scss">
@import './styles/colors';
.my-class {
color: $red;
}
</style>
supports scoped styling as well
<style lang="scss" scope>
@import './styles/colors';
.my-class {
color: $red;
}
</style>
Imports are resolved from the root folder, e.g.
@import './some/path/to/cssfile.css';
You can also import from node_modules
using a tilde, e.g.
@import '~some/path/to/a/node/package/cssfile.css';
This package only compiles scss inside of Vue components. If you use global stylesheets outside of Vue3 components we recommend installing fourseven:scss as well.
This package does not support .sass files