This post demonstrates how to add banners to the generated css/js asserts as part of the laravel elixir pipeline. For the purpose of this demonstration the following comment will be added either as a header or a footer to the css/js assets generated as part of the elixir pipeline.
In order to add this as an additional step in the elixir pipeline we need to use one of the following laravel elixir extensions. Install the laravel elixir extension using the following commands:
Both these extension libraries for elixir are simple wrappers and rely on the underlying functionality of the following libraries:
Change the gulp file in the laravel project, first add the library as a require statement, now the header or the footer function call can be added to the elixir pipeline, the order is important as it works on the generated files from the previous stages.