Skip to content

[fix]: update nuxt config: remove hash from file names#404

Closed
flashdesignory wants to merge 2 commits intoWebKit:mainfrom
flashdesignory:fix/news-site-nuxt-02
Closed

[fix]: update nuxt config: remove hash from file names#404
flashdesignory wants to merge 2 commits intoWebKit:mainfrom
flashdesignory:fix/news-site-nuxt-02

Conversation

@flashdesignory
Copy link
Copy Markdown
Contributor

Changing nuxt config, to avoid hash in file names.

moving discussion from #400 to this pr, in regards to build files creation.

@kara

@flashdesignory flashdesignory requested a review from julienw March 22, 2024 16:33
@flashdesignory flashdesignory changed the title [fix]: update nuxt config for build file names [fix]: update nuxt config: remove hash from file names Mar 22, 2024
Comment on lines +46 to +48
chunkFileNames: "_nuxt/[name].js",
entryFileNames: "_nuxt/[name].js",
assetFileNames: "_nuxt/[name].[ext]",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced: if we do that, when we'll update the file, the old version might be served from the cache. This will lead to bugs and frustrations.

I think the hash changing is a symptom that the content changes. I'm not too concerned about the hash change, it is easy to review. I'm more concerned to know why the content changes.
That's not a super big deal. Though I wonder if removing the minify step would be acceptable, as this would make easier to review the rendered code. Set this to false in vite's configuration, though it looks like there's an option in nuxt too.
What do you think?

@flashdesignory flashdesignory deleted the fix/news-site-nuxt-02 branch May 20, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants