[Fixed]-Django – minify javascript files

2👍

Django-compressor is the main tool for this, I think. As your use case sounds pretty simple, I think it’ll be sufficient.

If your Javascript becomes very complex, it’d be best to work with Javascript asset pipeline tools and try to fit them into Django, this area is not Django’s strong point.

Examples (and the rest of the docs) at read the docs.

-1👍

Try this?

http://jscompress.com/

Or this?

https://javascript-minifier.com/

Source: Google search term: minify javascript

👤Aren

Leave a comment