From 131522a49f36c909f007c0f78825bb22ce70b5e0 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Mon, 6 Apr 2020 16:02:54 -0600 Subject: [PATCH] remove fringe languages from highlight.js bundle to reduce size --- src/js/vendor/highlight.bundle.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/vendor/highlight.bundle.js b/src/js/vendor/highlight.bundle.js index 18b28b4..62ddd01 100644 --- a/src/js/vendor/highlight.bundle.js +++ b/src/js/vendor/highlight.bundle.js @@ -2,7 +2,7 @@ 'use strict' var hljs = require('highlight.js/lib/highlight') - hljs.registerLanguage('apache', require('highlight.js/lib/languages/apache')) + //hljs.registerLanguage('apache', require('highlight.js/lib/languages/apache')) hljs.registerLanguage('asciidoc', require('highlight.js/lib/languages/asciidoc')) hljs.registerLanguage('bash', require('highlight.js/lib/languages/bash')) hljs.registerLanguage('clojure', require('highlight.js/lib/languages/clojure')) @@ -14,15 +14,15 @@ hljs.registerLanguage('go', require('highlight.js/lib/languages/go')) hljs.registerLanguage('groovy', require('highlight.js/lib/languages/groovy')) hljs.registerLanguage('haskell', require('highlight.js/lib/languages/haskell')) - hljs.registerLanguage('http', require('highlight.js/lib/languages/http')) - hljs.registerLanguage('ini', require('highlight.js/lib/languages/ini')) + //hljs.registerLanguage('http', require('highlight.js/lib/languages/http')) + //hljs.registerLanguage('ini', require('highlight.js/lib/languages/ini')) hljs.registerLanguage('java', require('highlight.js/lib/languages/java')) hljs.registerLanguage('javascript', require('highlight.js/lib/languages/javascript')) hljs.registerLanguage('json', require('highlight.js/lib/languages/json')) hljs.registerLanguage('kotlin', require('highlight.js/lib/languages/kotlin')) hljs.registerLanguage('makefile', require('highlight.js/lib/languages/makefile')) hljs.registerLanguage('markdown', require('highlight.js/lib/languages/markdown')) - hljs.registerLanguage('nginx', require('highlight.js/lib/languages/nginx')) + //hljs.registerLanguage('nginx', require('highlight.js/lib/languages/nginx')) hljs.registerLanguage('nix', require('highlight.js/lib/languages/nix')) hljs.registerLanguage('objectivec', require('highlight.js/lib/languages/objectivec')) hljs.registerLanguage('perl', require('highlight.js/lib/languages/perl')) -- 2.11.0