What does {{ elixir('css/app.css') }} mean in Laravel?
PHP中文网
PHP中文网 2017-05-16 16:54:21
0
2
675

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">
PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
仅有的幸福

gulp发布的css || js是一个类似b23fasfs9da.css的文件,这个每次打包的时候文件名都不一样,所以需要借助elixirTo 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/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!