Skip to content

Commit

Permalink
Fix: text search (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: JD <43763092+jdw1023@users.noreply.github.com>
  • Loading branch information
mre and jdw1023 authored Jan 6, 2025
1 parent ca6937e commit b5b8fc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ index: content ## Build the search index with tinysearch

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

.PHONY: build
build: stars content index minify ## Build static site and search index, minify JS
Expand Down
1 change: 1 addition & 0 deletions static/search.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { search, default as init } from './tinysearch_engine.js';
async function lazyLoad() {
await init('/tinysearch_engine_bg.wasm');
}
Expand Down
2 changes: 1 addition & 1 deletion static/search_min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b5b8fc9

Please sign in to comment.