Skip to content

Commit

Permalink
fix: update highlight.js config
Browse files Browse the repository at this point in the history
Closes #378
  • Loading branch information
manekinekko committed Oct 14, 2020
1 parent aa6e7e7 commit 20f7286
Show file tree
Hide file tree
Showing 3 changed files with 195 additions and 462 deletions.
5 changes: 5 additions & 0 deletions apps/xlayers/src/app/app.module.ts
Expand Up @@ -55,6 +55,10 @@ export function getHighlightLanguages() {
};
}

export function getHighlightCoreLibraryLoader() {
return () => import('highlight.js/lib/core');
}

const StoreDebugModule = [
NgxsModule.forRoot([UiState, CodeGenState], {
/**
Expand Down Expand Up @@ -103,6 +107,7 @@ export function HttpLoaderFactory(http: HttpClient) {
{
provide: HIGHLIGHT_OPTIONS,
useValue: {
coreLibraryLoader: getHighlightCoreLibraryLoader(),
languages: getHighlightLanguages(),
},
},
Expand Down

0 comments on commit 20f7286

Please sign in to comment.