Skip to content

Commit

Permalink
Add Enhance Image
Browse files Browse the repository at this point in the history
Signed-off-by: macdonst <[email protected]>
  • Loading branch information
macdonst committed Jul 22, 2024
1 parent 2d9b7ab commit e460840
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions app.arc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ prune true

@plugins
architect/plugin-bundles
enhance/arc-image-plugin
enhance/arc-plugin-enhance
enhance/arc-plugin-styles
create-post-metadata
Expand Down
2 changes: 2 additions & 0 deletions app/elements/enhance-image.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import EnhanceImage from '@enhance/image'
export default EnhanceImage
13 changes: 13 additions & 0 deletions app/preflight.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default async function Preflight () {
return {
plugins: {
'@enhance/image': {
transform: {
widths: [ 2000, 1500, 1000, 750, 500 ],
quality: 75,
format: 'webp',
}
}
}
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@docsearch/js": "^3.3.0",
"@enhance/arc-plugin-enhance": "^11.0.1",
"@enhance/arc-plugin-styles": "^5.0.6",
"@enhance/image": "^1.0.0",
"@mux/mux-player": "^2.7.0",
"arcdown": "^2.3.0",
"feed": "^4.2.2",
Expand Down

0 comments on commit e460840

Please sign in to comment.