use vetur for files with extention other than `.vue`
See original GitHub issueI want to use vetur for files with extension .wpy
instead of .vue
. How to achieve this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (8 by maintainers)
Top Results From Across the Web
FAQ | Vetur - GitHub Pages
Vetur uses different version of TypeScript in .vue files to what I installed in node_modules . You can enable the Vetur: Use Workspace...
Read more >Top 5 VS Code extensions for Vue developers for 2022
Like Volar, Vetur provides full language support, that although is more mature and feature-rich, is somewhat lacking in Vue 3 and TS support....
Read more >Does VSCode support Vue without adding extensions?
itemName=octref.vetur. Short answer: No. Long answer: VSCode has been use its html extension for vue SFC. That works fine with html/css/js, ...
Read more >Best VS Code Extensions for Vue That You Cannot Miss in 2022
With the popularity of the Vue 3 + TypeScript combination growing, Vue's official VS Code extension, Vetur, began to have issues. For example, ......
Read more >Using Vue with TypeScript - Vue.js
Volar is the official VSCode extension that provides TypeScript support inside Vue SFCs, along with many other great features. TIP. Volar replaces Vetur,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I frankly don’t think it’s a good idea to limit Vetur to
.vue
files. There are variants of files using vue syntax but with other extention names. The one I’m using is.wpy
(wepy) which uses vue syntax but is targeting WeChat App. Apparently there are other cases as well for example the one mentioned in https://github.com/vuejs/vetur/issues/1616. I don’t see https://github.com/vuejs/vetur/issues/2573#issuecomment-747184865 as related because that specific to file associations.I was using Vetur for
.wpy
fine before 0.22.4 (including) https://github.com/vuejs/vetur/issues/1491. I don’t see benefit of limiting to.vue
file.@mashirozx @lzl124631x I can read Chinese, so I read all the framework documents.
Uni-app is based on Vue and explicitly conforms to Vue SFC spec in their document. I will consider accepting PR, but we don’t maintain different Vue parts. I will indicate this in the document and close the invalid issue.
In their document, it is only a framework and like Vue syntax. Ref:
类 Vue 开发风格
There is a big gap in many parts of the actual. I don’t think vetur can provide any practical help.If you only want syntax highlighting, you can copy vue syntax highlighting and open a new project. Here: https://github.com/vuejs/vetur/tree/master/syntaxes
Or set
files.associations
in vscode, syntax highlighting is work in vetur. Maybe try https://github.com/znck/vue-developer-experience/tree/main/extensions/vscode-vue