
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
メモ:nuxt/imageでSSGする際に処理する画像が多いとipxがエラー吐きまくる問題 - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
メモ:nuxt/imageでSSGする際に処理する画像が多いとipxがエラー吐きまくる問題 - Qiita
export function setupStaticGeneration (nuxt: any, options: ModuleOptions) { const staticImages = ... export function setupStaticGeneration (nuxt: any, options: ModuleOptions) { const staticImages = {} // url ~> hashed file name nuxt.hook('vue-renderer:ssr:prepareContext', (renderContext) => { renderContext.image = renderContext.image || {} renderContext.image.mapToStatic = <MapToStatic> function ({ url, format }: ResolvedImage) { if (!staticImages[url]) { const ext = (format && `.${format}`) || e