2

I'd like to use a local copy of jQuery 1.8.3 for my github project. I'd like to do it the right way, which would be to add it as a submodule:

git submodule add git://github.com/jquery/jquery.git js/lib/jquery

Done! The problem is the jQuery repository does not have prebuilt versions of jQuery, and other javascript libraries that I'm using do. How should I proceed?

2 Answers 2

1

You could build it yourself locally. There are some instructions on the GitHub project page.

Sign up to request clarification or add additional context in comments.

2 Comments

Is there really a point in it being a submodule, then? Why not just download it and add a rule in .gitignore?
It'd be exactly the same as using the pre-build version from the repository which you were going to do anyway.
0

Doing it the right way does not mean adding a submodule.

You could perfectly use a lightweight .js file or simply use a CDN that will be better for your server.

1 Comment

Pointing to a CDN doesn't support developing offline, unlike checked in .js or submodule.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.