Style repeated for every component
Hi there, in my inspect tool I notice that style il repeated for every component. Is it normal behavior?
R
rohrig•378d ago
hi @espoge 👋 , Is this style separated in the final bundle as well?
E
espoge•378d ago
hi @rohrig , I don't know yet. But seems that every class, selector and so on is recalled for every component
E
espoge•378d ago
A my own class repeated
J
jakfrs•378d ago
Hey @espoge, can you set up a sample repo and/or answer few questions about your setup?
Do you use any framework (like nuxt, quasar) or is this a pure Vue3 app?
What versions of libraries do you use (framework/
vue
/@storefront-ui/vue
/tailwindcss
)?E
espoge•378d ago
yes I'm using tailwind. I moved import of my style in default.vue and not in styles.scss (setted in nuxt.config.js). In this way it's working pretty well, I don''t know if it's the best solution
J
jakfrs•378d ago
I've just set up a local nuxt app following the getting started guide in SFUI2 docs (https://docs.storefrontui.io/v2/vue/getting-started.html) but no luck - none of the styles get duplicated
J
jakfrs•378d ago
The same on our stackblitz playground (https://stackblitz.com/edit/sfui-vue?file=src%2Fcomponents%2FImportComponents.vue)
I will need more information about your setup to be able to help - maybe it is possbile for you to replicate the problem in stackblitz and share it with me?
5.2KMembers
View on DiscordWant results from more Discord servers?
More PostsAdding a custom API callWe are trying to create a Business unit upon the creation of the new user for that we have created aGlide.js is treated as an ES moduleHi,
i get this error after running `yarn start` and trying to access the page
Does anyone know howtranslating componentsI cannot find a way to translate the SfAddToCart button's label. How can I do that?How is checkout components rendering?In code i find this array of steps in checkout. But how i can, for example, change component for shiUnable to make API call on serverhttps://auction-dev.ycspl.in/weeklyauction while accessing this endpoint my network request is made issue with API callWhen I do yarn start it adds undefined to my request url but when I do yarn dev it works fine. Can ygetting this error while trying to deployjenkins@ip-172-31-24-212:~/workspace/auction-frontend$ npm install
npm WARN read-shrinkwrap This verUnable to access cookies in composablescontext.$bagisto.config.app.$cookies.set('vsf-bagCust-token', loginResult.data.api_access_token);
myVSF UI 2 with ecommerce-integration-boilerplateHi, I hope this isn't a silly question :). Is it possible to use the new UI with the boilerplate fouWhat version of Node?Noob question. I was trying to create a storefront with spree and got the following error:
error @vuHow to add custom function to a composableimport {
Context,
useFacetFactory,
FacetSearchResult
} from '@vue-storefront/core';
import typGet product details and Static block from magento 2 backend to VueStoreFront.Hi, I have a doubt. I need to call static block from magento to vuestorefront homepage
someone pleasPossible Memory leak in vuestorefront-apiHi, we are using vuestorefront 1, problem we facing at the moment is that with time the api server iHow to detect if a page has an error inside the layoutInside the default layout I need to detect if there is an error page displayed (like for example a 4Contribution via a specific issueHello. I opened this **issue** (https://github.com/vuestorefront/vue-storefront/issues/6891). I workUnable to change the color of the SFheaderunable to change the background-color of Sf header can someone please helpVSF Redis cache - dynamic parts will be disappeared after a whileHi everybody,
we have implemented redis cache with VSF project (SSR Cache), but we faced an issue,Can't we use REST Apis with Vue storefrontIs it necessary to use GraphQl in vuestorefront?