Questions tagged [svelte-preprocess]
6 questions
2
votes
1 answer
Svelte VSCode doesn't recognize scss prependData for variable resolution
I'm using Svelte with Rollup, and trying to get scss to work importing an alias, or with global import. My app compiles just fine. But the problem is, VSCode (or svelte extension, i don't know) doesn't recognize aliases, and says my file has errors.…

Gabriel d'Agosto
- 416
- 3
- 12
2
votes
1 answer
svelte-preprocess does not transform typescript into javascript
I am trying to parse svelte component source codes in web worker.
Full source code here
import { parse , preprocess } from 'svelte/compiler';
import sveltePreprocess from 'svelte-preprocess';
import {
typescript,
scss,
globalStyle,
} from…

Mr.Wang from Next Door
- 13,670
- 12
- 64
- 97
1
vote
0 answers
Variable Name being read instead of its Value - @svelte-put/preprocess-inline-svg
I am using @svelte-put/preprocess-inline-svg to handle SVG's in my sveltekit app.
I have an array of strings that has all of my icon names in it.
Whenever trying to use:
I get the error: cannot find svg…

ethanfox27
- 890
- 1
- 9
- 25
1
vote
1 answer
Did the svelte.config.js file replace the rollup.config.js file in SvelteKit?
I'm trying to get PostCSS set up in my SvelteKit project to start playing with container queries. I installed 'svelte-preprocess' in my svelte.config.js file and made a postcss.config.cjs file (see below)
svelte.config.js
import adapter from…

joshCode25
- 23
- 5
1
vote
0 answers
Tailwindcss not re-loading during webpack watch with svelte
I am using svelte + webpack + tailwindcss for a project. When I build the project with npm run build my styles load correctly, however if I run webpack in watch mode with npm run watch, tailwind does not load new classes when I change a file. Any…

Will Epperson
- 51
- 5
1
vote
1 answer
svelte-kit / scss how to make the footer go the the bottom of the page
I'm new in svelte-kit
as a learning project, I want to check how to style the page
I use __layout. svelte with flex property in CSS(scss) to fill the page with the main content and make the header on top and the footer on the bottom.
I used the…

MSH
- 395
- 1
- 4
- 13