1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 13:13:00 +01:00
send/build
2018-03-07 15:01:08 -08:00
..
fluent_loader.js encapsulate translate function creation 2018-03-02 13:40:29 -08:00
generate_asset_map.js updated docs 2018-03-07 15:01:08 -08:00
generate_l10n_map.js updated docs 2018-03-07 15:01:08 -08:00
package_json_loader.js a few changes to make A/B testing easier 2017-08-25 09:44:52 -07:00
readme.md updated docs 2018-03-07 15:01:08 -08:00
version_loader.js added ver to qsurvey url 2017-12-05 12:51:37 -08:00

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.

Package.json Loader

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

Version Loader

This loader substitutes the string "VERSION" for the version string specified in package.json. This is a workaround because package.json already uses the package_json_loader. See app/templates/header/index.js for more info.

See Also