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/)!
|
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. 🧑🚀
|
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 {
|
export default {
|
||||||
"environment": "build",
|
"environment": "dev",
|
||||||
"isSsrBuild": false,
|
"isSsrBuild": false,
|
||||||
"projectBase": "",
|
"projectBase": "",
|
||||||
"publicDir": "C:\\Users\\zx\\Desktop\\polymech\\library.polymech\\public\\",
|
"publicDir": "C:\\Users\\zx\\Desktop\\polymech\\library.polymech\\public\\",
|
||||||
"rootDir": "C:\\Users\\zx\\Desktop\\polymech\\library.polymech\\",
|
"rootDir": "C:\\Users\\zx\\Desktop\\polymech\\library.polymech\\",
|
||||||
"mode": "production",
|
"mode": "dev",
|
||||||
"outDir": "C:\\Users\\zx\\Desktop\\polymech\\library.polymech\\dist\\",
|
"outDir": "dist",
|
||||||
"assetsDir": "_astro",
|
"assetsDir": "/_astro",
|
||||||
"sourcemap": false,
|
"sourcemap": false,
|
||||||
"assetFileNames": "/_astro/[name]@[width].[hash][extname]"
|
"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 mkdir } from "@polymech/fs/dir"
|
||||||
import { sync as exists } from "@polymech/fs/exists"
|
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
|
// Sharp related checks
|
||||||
export const sharp = await (async () => {
|
export const sharp = await (async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user