1
0
镜像自地址 https://github.com/coolaj86/ajquery.js.git 已同步 2024-11-16 17:29:02 +00:00

ref: optimize for minifying harder

这个提交包含在:
AJ ONeal 2024-08-29 18:36:30 -06:00
父节点 0635d41907
当前提交 77ad53208e
找不到此签名对应的密钥
GPG 密钥 ID: F1D692A76F70CF98
共有 3 个文件被更改,包括 7 次插入4 次删除

查看文件

@ -3,7 +3,7 @@
The fastest, most lightweight, fewest dependency jQuery alternative. The fastest, most lightweight, fewest dependency jQuery alternative.
Development Build: 572B (types + comments) \ Development Build: 572B (types + comments) \
Production Build: 146B (min + gz) Production Build: 117B (min + gz)
## Example Usage ## Example Usage

查看文件

@ -15,9 +15,9 @@
console.log("globalThis.AJQuery:", globalThis.AJQuery); console.log("globalThis.AJQuery:", globalThis.AJQuery);
</script> </script>
<script type="module" src="./ajquery.min.mjs"></script> <script type="module" src="./ajquery.mjs"></script>
<script type="module"> <script type="module">
import AJQuery from "./ajquery.mjs"; import AJQuery from "./ajquery.min.mjs";
console.log("imported AJQuery", AJQuery); console.log("imported AJQuery", AJQuery);
</script> </script>
</body> </body>

查看文件

@ -32,7 +32,10 @@
"start": "open http://localhost/example.html && caddy file-server --browse --root .", "start": "open http://localhost/example.html && caddy file-server --browse --root .",
"test": "node ./tests/", "test": "node ./tests/",
"--------": "---------------------------------------", "--------": "---------------------------------------",
"build-all": "npx uglify-js ajquery.js -o ajquery.min.js && npx uglify-js ajquery.cjs -o ajquery.min.cjs && npx uglify-js ajquery.js -o ajquery.min.mjs", "build-all": "npm run build-js && npm run build-cjs && npm run build-mjs",
"build-js": "npx -p uglify-js@3 uglifyjs --compress 'assignments' --mangle reserved='[\"$\",\"$$\",\"require\",\"exports\"]' ajquery.js -o ajquery.min.js",
"build-cjs": "npx -p uglify-js@3 uglifyjs --compress 'assignments' --mangle reserved='[\"$\",\"$$\",\"require\",\"exports\"]' ajquery.cjs -o ajquery.min.cjs",
"build-mjs": "npx -p uglify-js@3 uglifyjs --compress 'assignments' --mangle reserved='[\"$\",\"$$\"]' ajquery.mjs -o ajquery.min.mjs",
"jshint": "npx -p jshint@2.x -- jshint -c ./.jshintrc ./ajquery.js ./ajquery.cjs ./ajquery.mjs", "jshint": "npx -p jshint@2.x -- jshint -c ./.jshintrc ./ajquery.js ./ajquery.cjs ./ajquery.mjs",
"prepare": "npm run build", "prepare": "npm run build",
"prepublish": "npm run reexport-types", "prepublish": "npm run reexport-types",