Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PostCSS syntax in WebStorm

I'd like to start use PostCSS plugins in WebStorm and I want to know how to do it.

I've created the new project with index.html & style.css. For the last I set PostCSS dialect. PostCSS plugin installed automatically.

I write

main{
  height: 400px;
  width: 100%;
  section{
    width: 60%;
    height: 50px;
    border: 2px solid black;
  }
}

and postcss-nest doesn't work.

like image 535
Maxim Yazykov Avatar asked May 30 '26 11:05

Maxim Yazykov


1 Answers

You can enable PostCSS support for your .css files in Preferences | Languages & Frameworks | Stylesheets | Dialects.

enter image description here

like image 162
Arman Avatar answered Jun 01 '26 03:06

Arman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!