mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
08402ad584
* Add limitInputPixels option for sharp image service * Fix types * Update docs Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
22 lines
428 B
JavaScript
22 lines
428 B
JavaScript
export { defineConfig, getViteConfig } from './dist/config/index.js';
|
|
|
|
export function sharpImageService(config = {}) {
|
|
return {
|
|
entrypoint: 'astro/assets/services/sharp',
|
|
config,
|
|
};
|
|
}
|
|
|
|
export function squooshImageService() {
|
|
return {
|
|
entrypoint: 'astro/assets/services/squoosh',
|
|
config: {},
|
|
};
|
|
}
|
|
|
|
export function passthroughImageService() {
|
|
return {
|
|
entrypoint: 'astro/assets/services/noop',
|
|
config: {},
|
|
};
|
|
}
|