c2b768c453
Use --target web in wasm-bindgen and file-loader for WASM files, allowing wasm-bindgen's built-in fallback from WebAssembly.instantiateStreaming to instantiate. file-loader spits out the WASM file directly in the output folder, and imports will resolve to the URL, so that we can load the file directly, avoiding webpack's built-in wasm loaders. This allows Ruffle to function on web servers even if they serve WASM files with the incorrect MIME type, fixing one of our biggest support requests (#400, #1458). There is some performance impact on loading with the fallback, but this is preferable to not working at all. |
||
---|---|---|
.. | ||
build | ||
js | ||
tools | ||
.eslintrc.json | ||
LICENSE_APACHE | ||
LICENSE_MIT | ||
README.md | ||
manifest.json | ||
package.json | ||
webpack.config.js |
README.md
ruffle-extension
ruffle-extension is all of the power of Ruffle, in your browser.
Without needing websites to do anything, the browser extension will automatically replace any Flash content on websites with the Ruffle player.
The extension will automatically negotiate with websites that do have Ruffle installed, to ensure that there is no conflict between the versions. Newer version of ruffle, either from the website or extension, will always take precedence and disable the other.
Using ruffle-extension
The browser extension is built to work in both Chrome and Firefox.
We do not yet have a signed release of the extension, so you must load it as a temporary extension.
Before you can install the extension, you must either download the latest build or build it yourself.
Chrome
- Unpack
dist/ruffle_extension.zip
somewhere - Navigate to chrome://extensions/
- Turn on Developer mode in the top right corner.
- Click Load unpacked.
- Select the folder you unpacked the extension to.
Firefox
- Navigate to about:debugging.
- Click on This Firefox.
- Click Load Temporary Add-on...
- Select the
.xpi
from thedist
folder.
Building, testing or contributing
Please see the ruffle-web README.