Skip to content
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

build/js/ngl.dev.js #1046

Open
forever-happy-h opened this issue Jul 4, 2024 · 1 comment
Open

build/js/ngl.dev.js #1046

forever-happy-h opened this issue Jul 4, 2024 · 1 comment

Comments

@forever-happy-h
Copy link

Here I want to ask a stupid question: I downloaded NGL but did not find the build/js/ngl.dev.js file, how do I get it?

Thank you

@fredludlow
Copy link
Collaborator

The git repository contains the sources. You can either

Build from source using node:

  • you'll need some kind of vaguely posix-y terminal: (most linux and mac would just work, or WSL/git-bash on Windows)
  • Have node installed
git clone https://github.com/nglviewer/ngl.git
cd ngl
npm install
npm run build

You can grab the built version from npm (it won't have the ngl.dev.js file, but it'll have a couple of different minified formats). You can get directy from npm: https://registry.npmjs.org/ngl/-/ngl-2.3.1.tgz

Or the unpkg site is quite useful for browsing / picking individual files: https://unpkg.com/browse/[email protected]/dist/

Note, there's both ngl.js and ngl.js.map files, ngl.js is minified production code, but if you put them in the same directory on your webserver then when you open dev tools in your browser you should see and be able to step through NGL source code.

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

No branches or pull requests

2 participants