From d905b2e7bede2967d37ed7b260cd9d526bb9cabd Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 17 Apr 2017 15:31:48 -0500 Subject: [PATCH] only load libraries if present --- resources/assets/js/bootstrap.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/bootstrap.js b/resources/assets/js/bootstrap.js index f9c72e19..b5d26021 100644 --- a/resources/assets/js/bootstrap.js +++ b/resources/assets/js/bootstrap.js @@ -7,9 +7,11 @@ window._ = require('lodash'); * code may be modified to fit the specific needs of your application. */ -window.$ = window.jQuery = require('jquery'); +try { + window.$ = window.jQuery = require('jquery'); -require('bootstrap-sass'); + require('bootstrap-sass'); +} catch (e) {} /** * We'll load the axios HTTP library which allows us to easily issue requests