-
-
Notifications
You must be signed in to change notification settings - Fork 599
Feature Request: Specify style default lang #506
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
Comments
That's something I'm unaware of...Is it a template-specific config? Is there anyway to make that template specify postcss like
We'll likely add something like "vetur.grammar.css": "postcss",
"vetur.grammar.customBlocks": {
"i18n": "yaml"
} for #210. |
You can, but I think practically it's more extensible if you can specify grammars. It also requires less configuration for applications. Also by using internals of Vue-loader, you know the built-in features, and new feature 'Just work ™' |
@octref hey, I don't know if it's the same question. |
@evanyangg Yes, I think that's expected. If you set CSS Next is built with PostCSS, and adds many features that aren't currently implemented by browsers. They may be implemented in the future though :). So for now, nesting and some other features of CSS Next will give errors for |
Re: the original issue, 👍 to making PostCSS the default style language. Ideally the linter would read the PostCSS config and lint for just the plugins that have been installed 🙂. |
We are defaulting to SASS for <style> and would love to be able to configure it in vetur! |
I would say no to this feature. We already have a lot of configurations spreading across various .rc files and vscode config. It is hard for users to learn where to config what. Also, postcss doesn't necessarily mean CSSNext. And CSSNext actually contains many rejected proposals. An explicit |
The issue is solved with explicitness with |
@HerringtonDarkholme Why do I have to set lang explicitly in every component if I use postcss across all components anyway ? |
Problem
SFC by default uses postcss, thus you don't need to specify
<style lang="postcss">
when using cssnext/postcss ect. However to get correct highlighting with Vetur the default iscss
.Solution
Add vscode option to specify the default style lang, to change to postcss.
vetur.format.styleDefaultLang
The text was updated successfully, but these errors were encountered: