File provisioning
Mosaic introduces concept of "file provisioning". This is a feature of extensions.
To provide a file - means to add a file into the "override" tool-chain with a lowest priority. This would make it discoverable by compiler, while any theme will be able to easily override it.
This is commonly used by extensions which replace the web application's entry point. It makes it possible to compile an application using some other HTML entry-point without manually defining it in a theme.
To provide a file in some mosaic extension, set the mosaic.provide
field of its package.json
equal to an array, and populate it with desired path to provision.
package.json
Last updated