Added minification transform for tinyseg.js

This commit is contained in:
squidfunk
2020-02-14 17:59:09 +01:00
parent 0f77194c23
commit 32d6df4cc9
4 changed files with 8 additions and 208 deletions

View File

@@ -48,7 +48,7 @@ function setupLunrLanguages(config: SearchIndexConfig): void {
/* Add scripts for languages */
const scripts = []
for (const lang of config.lang) {
if (lang === "ja") scripts.push(`${base}/tinyseg.js`)
if (lang === "ja") scripts.push(`${base}/tinyseg.min.js`)
if (lang !== "en") scripts.push(`${base}/min/lunr.${lang}.min.js`)
}