Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

flashdesignory
Copy link
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 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
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.

None yet

3 participants