diff options
author | marudor <marudor@marudor.de> | 2018-08-03 11:35:44 +0200 |
---|---|---|
committer | marudor <marudor@marudor.de> | 2018-08-03 11:35:44 +0200 |
commit | ccd061d3cb2136b195a4f33adc1391c0042415ef (patch) | |
tree | ef15446f506a71663c87671b6e8a10d7706ebd94 | |
parent | fb1e6043633a5eedb91530145e8741e46088f13c (diff) |
Correctly expose jquery
-rw-r--r-- | frontend/js/vendor.js | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/frontend/js/vendor.js b/frontend/js/vendor.js index aa36cd5a..467fa2ac 100644 --- a/frontend/js/vendor.js +++ b/frontend/js/vendor.js @@ -1,18 +1,16 @@ -import 'imports-loader?module=>false!jquery'; -import 'imports-loader?define=>false!jquery-ui'; -import 'bootstrap'; -import 'imports-loader?define=>false&exports=>false!bootstrap-datepicker'; -import 'bootstrap-datepicker/js/locales/bootstrap-datepicker.de'; -import 'bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css'; -import 'imports-loader?this=>window!chart.js'; -import 'imports-loader?this=>window&define=>false&exports=>false!moment'; -import 'imports-loader?this=>window&define=>false&exports=>false!moment/locale/de'; -import './forms'; -import './sticky-headers'; -import './moment-countdown'; +window.$ = window.jQuery = require('jquery'); +require('imports-loader?define=>false!jquery-ui'); +require('bootstrap'); +require('imports-loader?define=>false&exports=>false!bootstrap-datepicker'); +require('bootstrap-datepicker/js/locales/bootstrap-datepicker.de'); +require('bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css'); +require('imports-loader?this=>window!chart.js'); +require('imports-loader?this=>window&define=>false&exports=>false!moment'); +require('imports-loader?this=>window&define=>false&exports=>false!moment/locale/de'); +require('./forms'); +require('./sticky-headers'); +require('./moment-countdown'); $(function () { moment.locale("%locale%"); }); - - |