silverstripe-webpack/app/client/src/js/app.js

35 lines
952 B
JavaScript
Raw Normal View History

2018-02-09 13:10:40 +01:00
import '../scss/app.scss';
2018-02-05 12:11:01 +01:00
2018-06-23 12:27:06 +02:00
// import Bootstrap
import 'popper.js';
2018-02-09 13:10:40 +01:00
import 'bootstrap/js/dist/util';
import 'bootstrap/js/dist/alert';
import 'bootstrap/js/dist/button';
import 'bootstrap/js/dist/carousel';
import 'bootstrap/js/dist/collapse';
2019-08-19 09:56:29 +02:00
import 'bootstrap/js/dist/dropdown';
2018-02-09 13:10:40 +01:00
import 'bootstrap/js/dist/modal';
import 'bootstrap/js/dist/tooltip';
import 'bootstrap/js/dist/popover';
import 'bootstrap/js/dist/scrollspy';
import 'bootstrap/js/dist/tab';
2018-02-05 12:11:01 +01:00
//
2018-06-23 12:27:06 +02:00
// Offcanvas menu
2018-06-23 12:27:06 +02:00
import 'offcanvas-bootstrap/dist/js/bootstrap.offcanvas';
// Uncomment it to enable meta-lightbox zooming on hover
//import 'jquery-zoom/jquery.zoom';
2018-08-06 13:46:54 +02:00
import 'meta-lightbox/meta-lightbox';
2018-04-21 05:36:06 +02:00
2018-07-02 04:34:36 +02:00
import './_main';
import './_layout';
2018-02-05 12:11:01 +01:00
function importAll(r) {
2019-06-08 17:54:43 +02:00
return r.keys().map(r);
}
2018-06-23 12:27:06 +02:00
const images = importAll(require.context('../img/', false, /\.(png|jpe?g|svg)$/));
2018-07-02 04:34:36 +02:00
const fontAwesome = importAll(require.context('font-awesome', false, /\.(otf|eot|svg|ttf|woff|woff2)$/));