Skip to content

Instantly share code, notes, and snippets.

@mklimek
Created November 23, 2017 15:52
Show Gist options
  • Save mklimek/c5175f01be1b25798767149150fd7aa9 to your computer and use it in GitHub Desktop.
Save mklimek/c5175f01be1b25798767149150fd7aa9 to your computer and use it in GitHub Desktop.
Visual Studio Code vue component snippet
{
"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