tlaxcalajuan Posted on Dec 15, 2020 How i use global script in my components sapper-svelte? #svelte #sapper #script Top comments (2) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Giorgos Kontopoulos 👀 Giorgos Kontopoulos 👀 Giorgos Kontopoulos 👀 Follow Remote Web engineer. Mostly frontend. Location Chios, Greece Education MS Computer Science Work Web Consultant at N3T Joined Jan 19, 2017 • Dec 29 '20 Dropdown menu Copy link Hide If you are referring to global css script see how it is used in a sapper template github.com/sveltejs/sapper-template (github.com/sveltejs/sapper-templat...) or you can use global scoped styles within any of the svelte files by using the :global function like so <style> :global(p) { margin-bottom: 1 rem; } </style> Enter fullscreen mode Exit fullscreen mode Collapse Expand Giorgos Kontopoulos 👀 Giorgos Kontopoulos 👀 Giorgos Kontopoulos 👀 Follow Remote Web engineer. Mostly frontend. Location Chios, Greece Education MS Computer Science Work Web Consultant at N3T Joined Jan 19, 2017 • Dec 21 '20 Dropdown menu Copy link Hide Describe what you want to do with more details and perhaps someone can jump in and help. Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
If you are referring to global css script see how it is used in a sapper template
github.com/sveltejs/sapper-template (github.com/sveltejs/sapper-templat...)
or you can use global scoped styles within any of the svelte files by using the
:global
function like soDescribe what you want to do with more details and perhaps someone can jump in and help.