Skip to content

Commit 0ca7c00

Browse files
committed
Also minify search_worker_init.js in the build script
1 parent f865593 commit 0ca7c00

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎scripts/minify.bash‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ npx cleancss --batch --batch-suffix '' -O2 \
3737
echo "Minifying Search JS..."
3838
npx uglify-js $BUILD_DIR/assets/js/search_index.js -o $BUILD_DIR/assets/js/search_index.min.js -c -m
3939
mv $BUILD_DIR/assets/js/search_index.min.js $BUILD_DIR/assets/js/search_index.js
40+
npx uglify-js $BUILD_DIR/assets/js/search_worker_init.js -o $BUILD_DIR/assets/js/search_worker_init.min.js -c -m
41+
mv $BUILD_DIR/assets/js/search_worker_init.min.js $BUILD_DIR/assets/js/search_worker_init.js
4042
# The other js files are too small to need minification
4143

4244
echo "Done!"

0 commit comments

Comments
 (0)