Created
November 23, 2017 15:52
-
-
Save mklimek/c5175f01be1b25798767149150fd7aa9 to your computer and use it in GitHub Desktop.
Visual Studio Code vue component snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Vue component": { | |
"prefix": "vue", | |
"body": [ | |
"<template>", | |
"\t<div id=\"$TM_FILENAME_BASE\"><>", | |
"\t\t$0", | |
"\t</div>", | |
"</template>", | |
"", | |
"<script>", | |
"import * as log from 'loglevel'", | |
"", | |
"export default {", | |
"\tname: '$TM_FILENAME_BASE',", | |
"\tdata () {", | |
"\t\treturn {", | |
"\t\t}", | |
"\t}", | |
"}", | |
"</script>", | |
"", | |
"<style lang='scss' scoped>", | |
"</style>" | |
], | |
"description": "Component with default name, scopped scss, and loglevel logger" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment