RequireJS + Zurb Foundation

By | February 28, 2014
"use strict";

require.config({
    baseUrl: 'static',
    paths: {
        jquery: 'bower_components/jquery/dist/jquery',
        foundation: 'bower_components/foundation/js/foundation',
    },
    shim:
    {
        'foundation': {
            deps: ['jquery']
        },
    }
});

require(['foundation'], function(f){
    $(function(){
        alert(1);
    });
});

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.