I installed bootstrap using NPM
In a normal svelte
project I usualy add bootstrap and other packages, which are used project wide, in the App.ts
file. However, in a SvelteKit project there is no main entry point.
So what is the recommended way of adding bootstrap 5 or other packages to SvelteKit globally?
I don't want to use rollup plugins, but rather just want to import it as an module in JavaScript
CodePudding user response:
You can make a top level __layout
and import everything there.