In laravel 5.2, there is the following import file. What does elixir in {{ elixir('css/app.css') }} mean?
<link href="{{ elixir('css/app.css') }}" rel="stylesheet">
認(rèn)證高級PHP講師
gulp
發(fā)布的css
|| js
是一個(gè)類似b23fasfs9da.css
的文件,這個(gè)每次打包的時(shí)候文件名都不一樣,所以需要借助elixir
To get the current file name
https://laracasts.com/series/laravel-5-fundamentals/episodes/19
Laravel Elixir provides a simple and smooth API that allows you to define basic Gulp tasks for your Laravel application. Elixir supports many common CSS and JavaScript preprocessors and even includes testing tools. 5.0 documentation http://www.golaravel.com/laravel/docs/5.0/elixir/