Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Commit f9eeae2

Browse files
committed
build instructions
1 parent 2f24f57 commit f9eeae2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

BUILD.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Building Minified LABjs
2+
=======================
3+
4+
The LAB.src.js file is the source file for builds. If you minify this file using Packer (without base62), or YUIC, you'll get the equivalent of LAB-debug.min.js.
5+
6+
To get LAB.min.js (with debug code removed), you need to first process the code in LAB.src.js. I do this manually with a simple regex-based find-n-replace, using this regular expression:
7+
8+
/\/\*!START_DEBUG(?:.|[\n\r])*?END_DEBUG\*\//
9+
10+
That will remove all the debug code snippets from the source code, then pass that code through Packer or YUIC, and you'll ge the equivalent of LAB.min.js.
11+
12+
Final note: I manually preserve the copyright/license block comment and include it at the top of each of the two *.min.js files, since the compressors tend to remove it.
13+
14+
/*! LAB.js (LABjs :: Loading And Blocking JavaScript)
15+
vX.Y.Z (c) Kyle Simpson
16+
MIT License
17+
*/

0 commit comments

Comments
 (0)