1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
"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); }); }); |