Foundation with Laravel and Elixir

前端 未结 2 1804
悲哀的现实
悲哀的现实 2021-02-06 09:33

How should one use Foundation with Laravel?

I thought I\'d install Foundation in vendor folder with bower install foundation. This results int

2条回答
  •  没有蜡笔的小新
    2021-02-06 09:52

    Copy Fundation > scss folder to resources > assets folder, rename scss to sass, in your gulpfile.js add following

    elixir(function(mix) {
        mix.sass('foundation.scss');
    });
    

    Run gulp which will generate foundation.css file in public > css folder, include that file in your project.

    For js files you can simple use something like this to copy the file

    mix.copy('resources/assets/foundation/js/app.js', 'public/js/app.js');
    

提交回复
热议问题