Pridan program, opraveno jQuery s webpackem

This commit is contained in:
Michal Kváček
2018-11-16 14:10:42 +01:00
parent 7d388100a5
commit 15c0f0b54a
13 changed files with 311 additions and 30 deletions
+14 -5
View File
@@ -1,13 +1,22 @@
// webpack entry point
// JS
import $ from 'jquery';
window.jQuery = $;
window.$ = $;
import 'bootstrap';
import 'fullcalendar';
var req = require.context("./src/assets/js", true, /^(.*\.(js$))[^.]*$/igm);
req.keys().forEach(function(key){
req(key);
});
function requireAll(r) {
r.keys ().forEach (r);
}
requireAll (require.context ('./src/assets/js', true, /\.js$/));
// SASS
import './src/assets/scss/app.scss';
import './src/assets/scss/app.scss';
// nefunguje kalendar z nejakeho duvodu - mam blbe cestu
// import '~fullcalendar/dist/fullcalendar.css';