From b80e834f68249dbae22a18a049bd2d7fb19b9bd2 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 26 May 2021 16:26:01 +0200 Subject: [PATCH] Including bootstrap needs to be per entry --- assets/job/add.js | 1 + assets/job/index.js | 2 ++ webpack.config.js | 3 +-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/job/add.js b/assets/job/add.js index 7ba0b92..a5f2d23 100644 --- a/assets/job/add.js +++ b/assets/job/add.js @@ -1,5 +1,6 @@ import 'tempusdominus-bootstrap-4'; import bsCustomFileInput from 'bs-custom-file-input'; +import 'bootstrap'; $(function() { initDatePickers(); diff --git a/assets/job/index.js b/assets/job/index.js index ad6e719..87e13ef 100644 --- a/assets/job/index.js +++ b/assets/job/index.js @@ -1,3 +1,5 @@ +import 'bootstrap'; + $(function() { initDeleteButtons(); }) diff --git a/webpack.config.js b/webpack.config.js index 0069386..b9632a1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -70,8 +70,7 @@ Encore $: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery', - moment: 'moment', - boostrap: 'bootstrap' + moment: 'moment' }) ;