-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add asset priority & use AssetMaker for global backend assets (#1022)
Co-authored-by: Luke Towers <luke@luketowers.ca> Co-authored-by: Luke Towers <git@luketowers.ca> This PR changes the global backend assets that were originally specified directly in the "head" template for the Backend, and uses the AssetMaker to load them instead. This should allow people the ability to manipulate the assets if need be through events. To ensure that the global assets are loaded first before all others, I have also introduced a order value for assets. It may be specified by providing the second argument for addJs(), addCss(), etc. as an array and populating it with the following: $this->addCss('my.css', [ 'build' => 'core', 'order' => 50, // must be an integer ]); The default order for all assets is 500.
- Loading branch information
1 parent
347282b
commit cb51ce9
Showing
5 changed files
with
150 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.