Skip to content

How to run normally, without 'npm run dev'? #12051

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

Open
1 of 3 tasks
jamminjames opened this issue Mar 31, 2025 · 1 comment
Open
1 of 3 tasks

How to run normally, without 'npm run dev'? #12051

jamminjames opened this issue Mar 31, 2025 · 1 comment

Comments

@jamminjames
Copy link

jamminjames commented Mar 31, 2025

Documentation Is:

  • Missing or needed?
  • Confusing
  • Not sure?

Please Explain in Detail...

In the Getting Started guide here, it says:
"Time to run the example with npm run dev, yarn dev, or pnpm dev and navigate to localhost:1234 in your web browser"

I've done that, and it works, however, how does this work on a production website, or in an xampp instance? If npm is installed (it is), shouldn't it work by just going to the html file in xampp? It's not working, what do I do?

Your Proposal for Changes

Documentation on running this on a production website.

@LeeLenaleee
Copy link
Collaborator

On a production website you bundle your javascript and then you upload that bundle and it should work.
If you just use plain HTML you will need to include the source directly by downloading the library or using a CDN:
https://www.chartjs.org/docs/latest/getting-started/installation.html#cdn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants