Skip to content

[Question] Self-Hosting instead of unpkg #217

@LindezaGrey

Description

@LindezaGrey

Hi there sorry to bother you but i can't get my head around the fact how this is hosted on unpkg.com and how i can clone and self-host this library. i would like to do some changes on the styling. Can you give me a quick hint about the steps i should take?
I saw that the bundle.js is also published to github-pages. Could it be imported like this:

script: https://workadventure.github.io/scripting-api-extra/bundle.js

instead of:
script: https://unpkg.com/@workadventure/scripting-api-extra@^1/dist/bundle.js

i already tried to install the library in my project like so:
npm install --save git+https://github.com/workadventure/scripting-api-extra.git

but i get errors - i guess because the map-starter-kit uses vite while here we are using webpack.

Anyways, my main question:
How can i tell workadventure (self-hosted) to not load from unpkg.com but my version? Ideally hosted with github pages. Just a few hints in the right direction would be really appreciated. thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions