Skip to content

Commit af78616

Browse files
author
Neeraj Joshi
committed
Fastboot check for loading bower components
1 parent 1e5df18 commit af78616

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ module.exports = {
77
included: function(app) {
88
this._super.included(app);
99

10-
app.import(app.bowerDirectory + '/bootstrap-datepicker/dist/js/bootstrap-datepicker.js');
11-
app.import(app.bowerDirectory + '/bootstrap-datepicker/dist/css/bootstrap-datepicker.css');
10+
if (process.env.EMBER_CLI_FASTBOOT !== 'true') {
11+
app.import(app.bowerDirectory + '/bootstrap-datepicker/dist/js/bootstrap-datepicker.js');
12+
app.import(app.bowerDirectory + '/bootstrap-datepicker/dist/css/bootstrap-datepicker.css');
13+
}
1214
}
1315
};
16+

0 commit comments

Comments
 (0)