Skip to content

Commit d8167fa

Browse files
author
Sandro Das Neves
committed
add the @ to path
add the @ to path to src folder like it’s recommended by vue cli 3 comment when we start a new project
1 parent 7d51a0f commit d8167fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/vue-script.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
},
101101
"Vue Import File": {
102102
"prefix": "vimport",
103-
"body": ["import ${1:New} from './components/${1:New}.vue';"],
103+
"body": ["import ${1:New} from '@/components/${1:New}.vue';"],
104104
"description": "Import one component into another"
105105
},
106106
"Vue Import into the Component": {
@@ -111,7 +111,7 @@
111111
"Vue Import Export": {
112112
"prefix": "vimport-export",
113113
"body": [
114-
"import ${1:Name} from './components/${1:Name}.vue'",
114+
"import ${1:Name} from '@/components/${1:Name}.vue'",
115115
"",
116116
"export default {",
117117
"\tcomponents: {",

0 commit comments

Comments
 (0)