project-nv / night-vision

Highly customizable charting library, created for professional traders
https://nightvision.dev
MIT License
237 stars 54 forks source link

Provide standalone js package #100

Closed Patricks15 closed 10 months ago

Patricks15 commented 10 months ago

Description

Hello, this project looks really amazing to me. I would love to use this. But I need it as a standalone package for a static html import. Is there a way to provide this js chart library as a standalone package?

Best regards, Patrick

Suggested solution

E.g.: provide it as a standalone package by cdn or unpkg.

Alternative

No response

Additional context

No response

Validations

C451 commented 10 months ago

Thanks man. Yeah, you know what, it actually can be useful. For now you need to run npm run build-cdn in the repo. Cdn version will be in dist/cdn. To use:

let chart = new NightVision.NightVision(...)
Patricks15 commented 10 months ago

Works perfect, thanks for the support !!