Assets
Last updated
Was this helpful?
Last updated
Was this helpful?
Assets can be included per component or . Assets are additional files that should be deployed when a project is published. They are not processed in any way and are simply copied during publish.
All assets should be placed inside a directory named page and will be deployed once to the page's files directory during publish. Here's an example showing where to place the snowstorm.js file.
To link to an asset in a single component you'll need to do the following;
Use the {{assetPath}} macro inside of the index.html Template file. If you need the include to appear in the head (or other areas) of the page you can .
Include the following code in the to return the assetPath to the page template: