File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
source/components/navigation Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1- 7.9 .0
1+ 8.5 .0
Original file line number Diff line number Diff line change 33const _ = require ( 'lodash' ) ;
44const path = require ( 'path' ) ;
55
6- const _privateConfig = require ( './_config.private' ) || { } ;
6+ let _privateConfig ;
7+
8+ try {
9+ _privateConfig = require ( './_config.private' ) ;
10+ } catch ( e ) {
11+ _privateConfig = { } ;
12+ }
713const CONFIG = { } ;
814
915// PATHS
Original file line number Diff line number Diff line change 77const Build = require ( './build' ) ;
88const CONFIG = require ( '../_config' ) ;
99const Clean = require ( './clean' ) ;
10+ const _ = require ( 'lodash' ) ;
1011const fs = require ( 'fs' ) ;
1112const pkgcloud = require ( 'pkgcloud' ) ;
1213
14+ // Do not continue without configuration
15+ if ( _ . isEmpty ( CONFIG . cdn . storage ) ) {
16+ throw new Error ( 'Storage configuration is not defined' ) ;
17+ }
18+
1319const storageClient = pkgcloud . storage . createClient ( CONFIG . cdn . storage ) ;
1420
1521function _upload ( client , src , dest ) {
Original file line number Diff line number Diff line change 5555
5656 hx- reveal {
5757 & [open ] {
58- & > header {
58+ header {
5959 .toggle-icon {
6060 transform : scaleY (-1 );
6161 }
You can’t perform that action at this time.
0 commit comments