Staś Małolepszy f8964ebb99 Use FluentResource to parse and serialize FTL files server-side (#952) 6 years ago
..
fluent_loader.js f8964ebb99 Use FluentResource to parse and serialize FTL files server-side (#952) 6 years ago
generate_asset_map.js 1a78f57515 don't set cache header on serviceWorker.js 6 years ago
generate_l10n_map.js 18e1609cb3 updated docs 7 years ago
readme.md ebf6bda467 updated to webpack 4 6 years ago
version_plugin.js a80d007e0c Hook up the android kotlin code to the send js code (#860) 6 years ago

readme.md

Custom Loaders

Fluent Loader

The fluent loader "compiles" .ftl files into .js files directly usable by both the frontend and server for localization.

Generate Asset Map

This loader enumerates all the files in assets/ so that common/assets.js can provide mappings from the source filename to the hashed filename used on the site.

Generate L10N Map

This loader enumerates all the ftl files in public/locales so that the fluent loader can create it's js files.

Version Plugin

Creates a version.json file that gets exposed by the /__version__ route from the package.json file and current git commit hash.

See Also