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
So, if we setup in this way that, we just need to change the variable in one place, then the namespace will be reflected throughout the project files.
The text was updated successfully, but these errors were encountered:
AaronKow
changed the title
Apply project namespace throughout the components' class name in HT and css
Apply project namespace throughout the components' class name in HTML and CSS
Dec 21, 2018
AaronKow
changed the title
Apply project namespace throughout the components' class name in HTML and CSS
Apply namespace in one place then reflect throughout the project
Dec 21, 2018
Also, #{$project-name}/${PROJECT_NAME} is a bit long. We need to find a way to tackle the verbosity problem (maybe just a shorter variable name?).
Aside from that, to use the project shortName in a Vue SFC file, we can add it to the component object during creation, rather than have to define a componentClass prop. This approach also keeps the class declarations where they should be – inside the <template> tags.
Then we can wrap import {PROJECT_NAME} from './constants'; and the created() method into a Vue mixin and we won't have to do this stuff in every component file :)
It would be good if we have a way to define the namespace variable in one place then it would be used throughout the css and HTML.
So, if we setup in this way that, we just need to change the variable in one place, then the namespace will be reflected throughout the project files.
The text was updated successfully, but these errors were encountered: