vendredi 8 mai 2015

Laravel 5 with Foundation 5

I installed foundation via bower under "resources/assets/bower_components".

I don't know what to do with the _settings.scss file and where to put it.

My app.scss file just has:

@import "../bower_components/foundation/scss/foundation";
@import "../bower_components/foundation/scss/normalize";

I can't get the javascript to work. I don't know why. In my gulpfile I've combined all the javascript files into one file app.js.

Here is my gulpfile.

elixir(function(mix) {

var bowerPath = "resources/assets/bower_components/";

mix.sass(
    [
        "app.scss"
    ],
    "public/css",
    {
        includePaths: [
            bowerPath + "foundation/scss"
        ]
    }
)
    .scripts(
    [
        "jquery/dist/jquery.js",
        "fastclick/lib/fastclick.js",
        "jquery.cookie/jquery.cookie.js",
        "jquery-placeholder/jquery.placeholder.js",
        "foundation/js/foundation.js"
    ],
    "public/js/app.js",
    bowerPath
);
});

Here is my current project structure: http://ift.tt/1zIdxRI

Someone please help. I'm stuck and I think I've done something wrong along the way. If someone can walk me through installing Foundation 5 to Laravel 5 from a fresh Laravel project, that would be awesome!

Aucun commentaire:

Enregistrer un commentaire