akryum:vue-stylus

v0.1.0Published 7 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Integrate stylus with vue single-file components for Meteor

Compatibility: Vue 1.x, Vue 2.x

This meteor package adds stylus support in your single-file .vue components. nib is also supported.

Installation

meteor add akryum:vue-stylus

Usage

1<style scoped lang="stylus">
2.home
3  text-align: center
4
5  img.logo
6    max-width: 101px
7    margin: 12px
8</style>

You can import files with absolute, relative path or a folder:

1<style scoped lang="stylus">
2// Absolute path in the project
3@import "~imports/ui/mixins.import.styl";
4// Relative path
5@import "./mixins.import.styl";
6// Folder path will import 'index.styl'
7@import "./styles";
8</style>

LICENCE ISC - Created by Guillaume CHAU (@Akryum)