Skip to content
Discussion options

You must be logged in to vote

I think you'll want to put that anywhere else except the public folder. That folder is best used to serve other static assets.

Aside from that, you'll likely need to include the extension when importing it. so import CloudKit from '../scripts/cloudkit.js'. Otherwise webpack won't know how to resolve it.

Alternatively it looks like Apple recommends just including it via their CDN in a script tag, so that may be best.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@komocode
Comment options

@jamesmosier
Comment options

@komocode
Comment options

Answer selected by komocode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants