You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to keep the file name of image same as I have saved in my Static folder. But currently it is showing some hash-value in URL after I run generate and start.
I even used the fileNamesoption given in build in nuxt.config.js file: img: ({ isDev }) => isDev ? '[path][name].[ext]' : 'img/[contenthash:7].[ext]',
I changed this to: img: ({ isDev }) => isDev ? '[path][name].[ext]' : 'img/[name].[ext]'
But still images are renamed as hash-value only.
Since, the renamed file name has some path like this "_image/a11cc5.webp", I can assume it is because of nuxt-image module, and thus, above fileNames option will not work.
So,
Is there any option to write inside the ipx option inside image option provided by nuxt-image module? For e.g., fileOutput or toFile?
Something like this: image: {ipx: {sharp: fileOutput or toFile: "something here"}}
P.S. I am new to Nuxt or even Javascript.
The text was updated successfully, but these errors were encountered:
I want to keep the file name of image same as I have saved in my Static folder. But currently it is showing some hash-value in URL after I run generate and start.
I even used the
fileNames
option given inbuild
innuxt.config.js
file:img: ({ isDev }) => isDev ? '[path][name].[ext]' : 'img/[contenthash:7].[ext]',
I changed this to:
img: ({ isDev }) => isDev ? '[path][name].[ext]' : 'img/[name].[ext]'
But still images are renamed as hash-value only.
Since, the renamed file name has some path like this "_image/a11cc5.webp", I can assume it is because of nuxt-image module, and thus, above fileNames option will not work.
So,
Is there any option to write inside the
ipx
option insideimage
option provided by nuxt-image module? For e.g.,fileOutput
ortoFile
?Something like this:
image: {ipx: {sharp: fileOutput or toFile: "something here"}}
P.S. I am new to Nuxt or even Javascript.
The text was updated successfully, but these errors were encountered: