Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/public/main.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import 'file-loader?name=fonts/[name].[ext]!./fonts/bb-icons.svg';
import './images/bb-logo.svg';

// styles
import './main.scss';
//import './main.scss';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this commented line need to be here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely not!


// chosen angular translations
import 'file-loader?name=angular-i18n/[name].[ext]!bookingbug-angular/node_modules/angular-i18n/angular-locale_en.js';
Expand All @@ -26,6 +26,15 @@ import config from './main.config';
import run from './main.run';
import versionModule from './version/version.module';

// Try to load a versioned scss file, otherwise load the default one
import BBUIVersionService from 'bookingbug-angular/src/public-booking/-versioning/ui_version.service';
try {
require('./main_v' + BBUIVersionService.getUIVersion() + '.scss');
} catch (ex) {
require('./main.scss');
}


export default angular
.module('public', [
bbPublicBookingModule,
Expand Down
1 change: 1 addition & 0 deletions src/public/main_v2.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "~bookingbug-angular/src/public-booking/main_v2.scss";