Skip to content

Commit b5b8fc9

Browse files
mrejdw1023
andauthored
Fix: text search (#63)
Co-authored-by: JD <[email protected]>
1 parent ca6937e commit b5b8fc9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ index: content ## Build the search index with tinysearch
4949

5050
.PHONY: minify
5151
minify: ## Compress JavaScript assets
52-
terser --compress --mangle --output public/search_min.js -- static/search.mjs public/tinysearch_engine.js
52+
terser --compress --mangle --output public/search_min.js -- static/search.mjs
5353

5454
.PHONY: build
5555
build: stars content index minify ## Build static site and search index, minify JS

static/search.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { search, default as init } from './tinysearch_engine.js';
12
async function lazyLoad() {
23
await init('/tinysearch_engine_bg.wasm');
34
}

static/search_min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)