@avorona
, I think I've found the problem, I think it's because svelte compiles all files into .js ,, soglobal.pcss becomes global.js ,, or index.pcss or other name
what we can do to run the run build without problems,
rename the file global.pcss toGlobalStyle.svelte
edit the contents of GlobalStyle.svelte to be something like this
<style global>/* preprocessing css goes here */</style>
and in the $layout.svelte
<script>// import './global.pcss'importGlobalStylefrom'./GlobalStyle.svelte'// other code</script><GlobalStyle/><!-- call the component --><main><slot/></main>
@avorona , I think I've found the problem, I think it's because svelte compiles all files into
.js,, soglobal.pcssbecomesglobal.js,, orindex.pcssor other namewhat we can do to run the
run buildwithout problems,global.pcsstoGlobalStyle.svelteGlobalStyle.svelteto be something like this$layout.sveltedo the
run build,, and,, BOOM!!! no errorplease CMIIW
Why not inside the $layout.svelte?