New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preline.js doesn't work in production - SvelteKit #110
Comments
Perhaps before the "Add the Preline UI JavaScript" section in the docs, there should be a section to copy the preline.js file via cli (since they'll be using the terminal for the setup anyway) Something like this: Run this command in your terminal. Make sure you're in the root directory of your svelte project first. You can navigate by using On Windows:
On Linux and Mac:
Add the Preline UI JavaScript
This works for me🙂 |
Works for me, but shouldn't step 4 be based on your step 3? |
@kevan-mtl Thanks. I saw the mistake. Fixed it. |
@kevan-mtl marking it as closed for now. If you have more details to share in the future, feel free to open a new issue. |
Whenever I build SvelteKit, preline.js in the node_modules file is not bundled with it.
I found a workaround for this: copy the preline.js from the node_modules file into the /static folder and link to it in the index.html with %sveltekit.assets%/preline.js. It works this way.
But this should be in the docs.
The text was updated successfully, but these errors were encountered: