A collection of Coffeescript files are compiled using the Coffeescript filter, minified using the Google Closure Compiler filter, then concatenated into one.less files which are compiled with the Less filter, minified using a CSS minification filter and concatenated into one CSS file. For example, you might have a project with the following: So for example, one filter might be responsible for compilation, and one for minification.ĭifferent filters are usually applied to different collections. If you refer back to the idea of stages in the asset management process, you can think of each stage as being implemented by one or more filters. Images can often be reduced quite significantly in size using various compression algorithms, and in some cases you can also reduce the number of HTTP requests by BASE-64 encoding them and embedding the data in your stylesheets.Ī filter is applied to a collection to modify it in some way. For JavaScript, you’d probably minify or pack your source files. For CSS, typically you’ll minify your stylesheet files when you go into production mode. There are also a few additional compilation steps involved in some JavaScript-based tools for example compiling Handlebars, Twig or Mustache templates. The first is compilation, a necessary step if you’re using a CSS framework such as Less, SASS, SCSS, Stylus, Compass etc, or something like Coffeescript or Dart. It sometimes helps to look at asset management in terms of several distinct stages. This might involve ensuring a particular library is available to your JavaScript, or making sure a CSS reset is applied before your other styles. $ MenuItem#anchor - Property in class MenuItem $ MenuItem#attributes - Property in class MenuItem Navigation::addNavItem() - Method in class Navigation Template::appendBlock() - Method in class TemplateĪppends a content of the layout block.Let’s start by looking at what asset management actually is.Īt its simplest, it’s a way of managing what resources are required by a website or a web application – or a specific page – and their dependencies. $ ListColumn#attributes - Property in class ListColumn LocationScope::apply() - Method in class LocationScopeĪpply the scope to a given Eloquent query builder. FormTabs::addField() - Method in class FormTabsĪdd a field to the collection of tabs. Sets the attributes for this field in a given position. AssigneeController::assigneeApplyScope() - Method in class AssigneeController AssigneeController::assigneeBindToolbarEvents() - Method in class AssigneeController AssigneeController::assigneeBindListsEvents() - Method in class AssigneeController AssigneeController::assigneeBindFormEvents() - Method in class AssigneeController AssigneeUpdated - Class in namespace Admin\ActivityTypes AdminController - Class in namespace Admin\Classes $ AdminController#action - Property in class AdminController Allocator - Class in namespace Admin\Classes Allocator::allocate() - Method in class Allocator Allocator::addSlot() - Method in class Allocator $ BaseBulkActionWidget#actionButton - Property in class BaseBulkActionWidget $ BaseWidget#alias - Property in class BaseWidget $ FormField#arrayName - Property in class FormField $ FormField#attributes - Property in class FormField FormField::attributes() - Method in class FormField A AssigneeController - Class in namespace Admin\Actions $ AssigneeController#assigneeConfig - Property in class AssigneeControllerĭefine controller assignee configuration array.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |