Config contribution
The config folder contains files served as config contribution through the resource aggregator framework. Those resources are usually before the closing body tag.
Folder: /module-id/config
The following section provides a complete list of supported files within the config section.
/module-id/config Files that are stored in this directory are served in the config section of the resource aggregator.
/config/*.js JavaScript files are served in alphabetical order. They are grouped by file name and if they have the same name they belong to the same group. Within this group, the following extension variations exist. There are two sets of six resources. The sets cannot be mixed.
*.js Main compressed JavaScript content. *.js.uncompressed.js Main debug JavaScript content. *.rtl.js Compressed JavaScript to be used for right-to-left languages. *.rtl.js.uncompressed.js Debug JavaScript to be used for right-to-left languages. *.locale.js Compressed JavaScript content for a specific language. Replace locale and with the local representing code for the location. For example, for the United States, use en_us. *.locale.js.uncompressed.js Debug JavaScript content for a specific language. Replace locale and with the local representing code for the location. For example, for the United States, use en_us.
The following group is an alternative. Use either of these variation group, but we cannot mix them.
Alternative The following group is an alternative. Use either of these variation group, but we cannot mix them. *.min.js Main compressed JavaScript content. *.js Main debug JavaScript content. *.rtl.min.js Compressed JavaScript to be used for right-to-left languages. *.rtl.js Debug JavaScript to be used for right-to-left languages. *.locale.min.js Compressed JavaScript content for a specific language. Replace locale and with the local representing code for the location. For example, for the United States, use en_us. *.locale.js Debug JavaScript content for a specific language. Replace locale and with the local representing code for the location. For example, for the United States, use en_us.
/config/*.html HTML files are served in alphabetical order. They are grouped by file name and if they have the same name they belong to the same group. Within a group, the following extension variations exist.
*.html Main HTML content. *.rtl.html Defines the HTML to be used for right-to-left languages. *.locale.html Defines the HTML content for a specific language. Replace locale with the local representing code for the location. For example, for the United States, use en_us.
/config/device-class-name This optional directory scopes the resources by device class. Use one individual device class, but it has no equation support for the directory or the files in it. We can scope the contribution to a particular device class when the incoming request is recognized as a device class name. This contribution can include JavaScript, HTML, or CSS. See the previous sections for more information.
Parent Simple modules