Skip to content

Commit b4aef10

Browse files
committed
feat: added support for sass and less in vbase
1 parent e8c9caf commit b4aef10

File tree

2 files changed

+49
-6
lines changed

2 files changed

+49
-6
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
3232

3333
### Vue
3434

35-
| Snippet | Purpose |
36-
| ----------- | ------------------------------------------ |
37-
| `vbase` | Single file component base with SCSS |
38-
| `vbase-css` | Single file component base with CSS |
39-
| `vbase-pcss`| Single file component base with PostCSS |
40-
| `vbase-ts` | Single file component base with Typescript |
35+
| Snippet | Purpose |
36+
| ----------- | ------------------------------------------ |
37+
| `vbase` | Single file component base with SCSS |
38+
| `vbase-sass` | Single file component base with SASS |
39+
| `vbase-css` | Single file component base with CSS |
40+
| `vbase-less` | Single file component base with LESS |
41+
| `vbase-ts` | Single file component base with Typescript |
4142

4243
### Template
4344

snippets/vue.json

+42
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,48 @@
2020
],
2121
"description": "Base for Vue File with SCSS"
2222
},
23+
"Vue Single File Component with SASS": {
24+
"prefix": "vbase-sass",
25+
"body": [
26+
"<template>",
27+
"\t<div>",
28+
"",
29+
"\t</div>",
30+
"</template>",
31+
"",
32+
"<script>",
33+
"\texport default {",
34+
"\t\t${0}",
35+
"\t}",
36+
"</script>",
37+
"",
38+
"<style lang=\"sass\" scoped>",
39+
"",
40+
"</style>"
41+
],
42+
"description": "Base for Vue File with PostCSS"
43+
},
44+
"Vue Single File Component with LESS": {
45+
"prefix": "vbase-less",
46+
"body": [
47+
"<template>",
48+
"\t<div>",
49+
"",
50+
"\t</div>",
51+
"</template>",
52+
"",
53+
"<script>",
54+
"\texport default {",
55+
"\t\t${0}",
56+
"\t}",
57+
"</script>",
58+
"",
59+
"<style lang=\"less\" scoped>",
60+
"",
61+
"</style>"
62+
],
63+
"description": "Base for Vue File with PostCSS"
64+
},
2365
"Vue Single File Component with postcss": {
2466
"prefix": "vbase-pcss",
2567
"body": [

0 commit comments

Comments
 (0)