send/build/readme.md

22 lines
731 B
Markdown
Raw Normal View History

2018-03-06 00:29:09 +00: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.
2018-07-12 20:13:49 +00:00
## Version Plugin
2018-03-06 00:29:09 +00:00
2018-07-12 20:13:49 +00:00
Creates a `version.json` file that gets exposed by the `/__version__` route from the `package.json` file and current git commit hash.
2018-03-06 00:29:09 +00:00
# See Also
- [docs/build.md](../docs/build.md)
- [webpack.config.js](../webpack.config.js)