Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

v0.16

Compare
Choose a tag to compare
@devuri devuri released this 12 Aug 05:23
· 745 commits to master since this release
635f25a

v0.16 #27

asset()

The asset() function will generate a URL for an asset.

  • You can configure the asset URL by setting the ASSET_URL in your .env
  • Or optionally in the main config file.
asset( "/bootstrap/css/bootstrap-grid.css" ); // https://example.com/assets/dist/bootstrap/css/bootstrap-grid.css

asset( "/images/thing.png" ); // https://example.com/assets/dist/images/thing.png

asset( "/images/thing.png", "/static" ); // https://example.com/static/images/thing.png