only load libraries if present

This commit is contained in:
Taylor Otwell 2017-04-17 15:31:48 -05:00
parent 17ec5c51d6
commit d905b2e7be
1 changed files with 4 additions and 2 deletions

View File

@ -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