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

34 lines
963 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';
import 'bootstrap/js/dist/dropdown';
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
//import Vue from 'vue/dist/vue.esm.js';
// import Bootstrap-Vue
/*import { Carousel } from 'bootstrap-vue/es/components';
Vue.use(Carousel);*/
import 'offcanvas-bootstrap/dist/js/bootstrap.offcanvas';
2018-04-21 05:36:06 +02:00
2018-02-05 12:11:01 +01:00
// import your custom UI components
2018-02-09 13:10:40 +01:00
import './main';
2018-02-05 12:11:01 +01:00
function importAll(r) {
2018-04-21 05:36:06 +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)$/));
const fontAwesome = importAll(require.context('font-awesome', false, /\.(otf|eot|svg|ttf|woff|woff2)$/));