Skip to content

Document the official MIME type for .vue files #3352

@MichaelDeBoey

Description

@MichaelDeBoey

I’m working on improving MIME type support for modern web framework source files across tooling, servers, and content-type databases.

Currently, there does not appear to be an officially documented MIME type for .vue files.
Some tools/frameworks use conventions such as text/x-<framework>, but there is no authoritative reference from the Vue project itself.
This create ambiguity for other projects to rely on a consistent mapping.

Having an official statement would help:

  • MIME databases include the mapping
  • web servers and CDNs configure correct content types
  • editors and language servers align
  • reduce ecosystem fragmentation

Would the Vue project be open to document an official recommendation for the MIME type of .vue files?

This does not necessarily require IANA registration though.
A short note in the docs would already provide a reliable reference for downstream projects I think.

If another MIME type from text/x-vue (like text/plain, text/html, text/html+vue, ...) is preferred, documenting that choice would be equally helpful.

Thank you for your work and for considering this!

CC/ @yyx990803

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: awaiting-feedbackNeeds more input before further actions can be taken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions