wewowweb/laravel-svelte-preset

Style bootstrap don'work

Closed this issue · 1 comments

Hello! I try create custom components, but my components losse styles botstrapp. Sorry my english.

here my code...
mix.js('resources/js/app.js', 'public/js') .sass('resources/sass/app.scss', 'public/css') .svelte({ customElement: true, tag: null, });

Hey @devmiguelt,

first of all, no apologies needed for your English. My Spanish is not any good either 😉

As Svelte has scoped styles, the fastest way to get around this is to include the CSS file inside your custom component like so:

<style>  
@import "/css/app.css";  
</style>  

Hope that helps!

Kind regards,
g