library resources
This commit is contained in:
parent
67f34572a9
commit
bfe09f28a4
@ -37,3 +37,9 @@ If you want to view live examples of the components, APIs, layouts, and placehol
|
||||
If you want to report any issues or have found a missing feature, please report it on [GitHub](https://github.com/RafidMuhymin/astro-imagetools/)!
|
||||
|
||||
Good luck out there, Astronaut. 🧑🚀
|
||||
|
||||
### References
|
||||
|
||||
https://wasm-vips.kleisauke.nl/playground/#smartcrop
|
||||
https://www.libvips.org/2020/09/01/libvips-for-webassembly.html
|
||||
https://sharp.pixelplumbing.com/performance/
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
export default {
|
||||
"environment": "build",
|
||||
"environment": "dev",
|
||||
"isSsrBuild": false,
|
||||
"projectBase": "",
|
||||
"publicDir": "C:\\Users\\zx\\Desktop\\polymech\\library.polymech\\public\\",
|
||||
"rootDir": "C:\\Users\\zx\\Desktop\\polymech\\library.polymech\\",
|
||||
"mode": "production",
|
||||
"outDir": "C:\\Users\\zx\\Desktop\\polymech\\library.polymech\\dist\\",
|
||||
"assetsDir": "_astro",
|
||||
"mode": "dev",
|
||||
"outDir": "dist",
|
||||
"assetsDir": "/_astro",
|
||||
"sourcemap": false,
|
||||
"assetFileNames": "/_astro/[name]@[width].[hash][extname]"
|
||||
}
|
||||
@ -9,6 +9,14 @@ import { resolve } from "@polymech/commons"
|
||||
import { sync as mkdir } from "@polymech/fs/dir"
|
||||
import { sync as exists } from "@polymech/fs/exists"
|
||||
|
||||
import os from "node:os";
|
||||
|
||||
// Boost libuv threadpool size on Windows for better sharp performance
|
||||
// See: https://sharp.pixelplumbing.com/performance/
|
||||
if (os.platform() === "win32" && !process.env.UV_THREADPOOL_SIZE) {
|
||||
process.env.UV_THREADPOOL_SIZE = "8";
|
||||
}
|
||||
|
||||
// Sharp related checks
|
||||
export const sharp = await (async () => {
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user