vuejs/vetur

Syntax checking to auto-detect PostCSS in <style>

Open

#2556 aperta il 11 dic 2020

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)TypeScript (594 fork)github user discovery
feature-requestgood first issue

Metriche repository

Star
 (5752 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

  • I have searched through existing issues

Feature Request

I'm getting syntax errors in the <style> block on nested CSS rules and it seems the expected solution here is to add lang="postcss".

However, this is confusing because vue-loader docs say:

There's no need to specify lang="postcss" on a style block if there is a PostCSS config file in your project.

I'd like to request that Vetur implicitly determines whether the syntax is PostCSS, by detecting:

  • if there's a PostCSS config file: postcss.config.js, .postcssrc.js, etc.
  • which files postcss-loader is applied to

Guida contributor