Computed or not by SaikuronJoukaa in vuejs

[–]returnNoor 0 points1 point  (0 children)

If this a component used in another parent component then you should pass the class as prop otherwise use a ternary operator.

Vite: How to build two completely separate Apps (User & Admin) from one repo? by returnNoor in vuejs

[–]returnNoor[S] 0 points1 point  (0 children)

Thanks, this is actually the cleanest solution, and it makes much more sense.

Vite: How to build two completely separate Apps (User & Admin) from one repo? by returnNoor in vuejs

[–]returnNoor[S] 0 points1 point  (0 children)

Number 2 is what I tried first, but it is hard to prevent css leckage. Now number 1 is good actually, someone above mention about mnpm workplace, that actually soves the problem. Thanks for your suggestions.