// plugins

Lax CSS Plugin

Formats CSS, SCSS, and Less files via lax-css, a formatter that only adjusts whitespace, indentation, and line breaks and never rewrites your styles.

Formats .css, .scss, and .less files. The indented Sass syntax (.sass) is not supported; use Malva for that.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint add bartlomieju/lax-css
# or install from npm
dprint add npm:lax-css

This will update your config file to have an entry for the plugin. Then optionally specify a "css" property to add configuration:

{
  "css": {
    // css config goes here
  },
  "plugins": [
    "https://plugins.dprint.dev/bartlomieju/lax-css-x.x.x.wasm"
  ]
}

Configuration

See the plugin documentation.