Skip to content
Browse files

Stop bundling Mopidy.js

Fixes #1460
  • Loading branch information
jodal committed Oct 3, 2018
1 parent aeb2650 commit 1e0d7c6715dcf137759b272b6d5e1c0b77268c99
Showing with 10 additions and 2,942 deletions.
  1. +3 −22 docs/api/js.rst
  2. +5 −0 docs/changelog.rst
  3. +0 −2,913 mopidy/http/data/mopidy.js
  4. +0 −5 mopidy/http/data/mopidy.min.js
  5. +2 −2 tests/http/
@@ -12,28 +12,9 @@ instead of figuring out how to communicate with Mopidy.
Getting the library for browser use

Regular and minified versions of Mopidy.js, ready for use, is installed
together with Mopidy. When the HTTP extension is enabled, the files are
available at:

- http://localhost:6680/mopidy/mopidy.js
- http://localhost:6680/mopidy/mopidy.min.js

You may need to adjust hostname and port for your local setup.

Thus, if you use Mopidy to host your web client, like described in
:ref:`static-web-client`, you can load the latest version of Mopidy.js by
adding the following script tag to your HTML file:

.. code-block:: html

<script type="text/javascript" src="/mopidy/mopidy.min.js"></script>

If you don't use Mopidy to host your web client, you can find the JS files in
the Git repo at:

- ``mopidy/http/data/mopidy.js``
- ``mopidy/http/data/mopidy.min.js``
Regular and minified versions of Mopidy.js, ready for use, is available from
the project's
`GitHub release page <>`_.

Getting the library for Node.js or Browserify use
@@ -38,6 +38,11 @@ Extension support
HTTP frontend

- Stop bundling Mopidy.js and serving it at ``/mopidy/mopidy.js`` and
``/mopidy/mopidy.min.js``. All Mopidy web clients must use Mopidy.js from npm
or vendor their own copy of the library.
(Fixes: :issue:`1460`, PR: :issue:`1708`)

- Remove support for serving arbitrary files over HTTP through the use of
:confval:`http/static_dir`, which has been deprecated since 1.0. (Fixes:
:issue:`1463`, PR: :issue:`1706`)

0 comments on commit 1e0d7c6

Please sign in to comment.