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
now vue will get component name by filename, like /src/index.vue SFC file equal to component name = index.
I believe many teams would treat directories as names for business modules. And webpack or Node will search path always use /xxxDirector/index.xxx.
then we get next structure
├── foo
│ ├── index.vue
│ ├──bar
│ │ └── index.vue
│ └── business C
│ ├── index.vue
├── src
when we use vue-devtool, we will find lots of component which name = index. So I think It's confused
so maybe could provide a custom component name api, from vue-loader or compiler-sfc
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
now vue will get component name by filename, like
/src/index.vue
SFC file equal to component name =index
.I believe many teams would treat directories as names for business modules. And webpack or Node will search path always use
/xxxDirector/index.xxx
.then we get next structure
when we use vue-devtool, we will find lots of component which name = index. So I think It's confused
so maybe could provide a custom component name api, from vue-loader or compiler-sfc
Beta Was this translation helpful? Give feedback.
All reactions