You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
@@ -83,7 +83,7 @@ List of supported style languages:
83
83
84
84
- ##### CSS
85
85
The default style language.
86
-
86
+
87
87
- ##### Sass/Scss
88
88
It uses `node-sass@^4.5.0` to process`sass/scss` style elements. You can provide `node-sass` configuration options by setting:
89
89
``` js
@@ -96,10 +96,16 @@ It uses `less@^2.7.2` to process `less` style elements. You can provide `less` c
96
96
less: { /* node-sass options */}
97
97
```
98
98
99
+
- ##### Stylus
100
+
It uses `stylus@^0.54.5` to process`stylus` style elements. You can provide `stylus` configuration options by setting:
101
+
``` js
102
+
stylus: { /* stylus options */}
103
+
```
104
+
99
105
<p class="tip" markdown="1">
100
-
`node-sass`and `less` are optional dependencies. If you are using `scss/sass/less` you should require (`yarn add --dev node-sass less`) them.
106
+
`node-sass`, `less`and `stylus` are optional dependencies. If you are using `scss/sass/less/stylus` you should require (`yarn add --dev node-sass less stylus`) them.
101
107
</p>
102
-
108
+
103
109
#### Use other plugins
104
110
Set`autoStyles: false` and `styleToImport: true` to importstyleasa dependency and plugins like [rollup-plugin-scss](https://github.com/differui/rollup-plugin-sass) can be used.
105
111
@@ -137,7 +143,7 @@ export default {
137
143
<p :class="{ [$style.red]: isRed }">
138
144
Am I red?
139
145
</p>
140
-
146
+
141
147
<p :class="[$style.red, $style.bold]">
142
148
Red and bold
143
149
</p>
@@ -147,11 +153,11 @@ export default {
147
153
<script>
148
154
export default {
149
155
computed: {
150
-
156
+
151
157
$style () {
152
158
return this.$options.cssModules
153
159
}
154
-
160
+
155
161
}
156
162
}
157
163
</script>
@@ -185,7 +191,7 @@ You can have more than one `<style>` tags in a single *.vue component. To avoid
185
191
You can provide `postcss-modules` configuration options by setting:
0 commit comments