Home  >  Q&A  >  body text

What does {{ elixir('css/app.css') }} mean in Laravel?

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中文网2713 days ago658

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 16:56:21

    gulp发布的css || js是一个类似b23fasfs9da.css的文件,这个每次打包的时候文件名都不一样,所以需要借助elixirTo get the current file name

    https://laracasts.com/series/laravel-5-fundamentals/episodes/19

    reply
    0
  • 为情所困

    为情所困2017-05-16 16:56:21

    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/

    reply
    0
  • Cancelreply