An open API service indexing awesome lists of open source software.

https://github.com/1000ch/vscode-csso

Minify CSS with CSSO.
https://github.com/1000ch/vscode-csso

css csso vscode vscode-extension

Last synced: over 1 year ago
JSON representation

Minify CSS with CSSO.

Awesome Lists containing this project

README

          

# vscode-csso [![test](https://github.com/1000ch/vscode-csso/actions/workflows/test.yml/badge.svg)](https://github.com/1000ch/vscode-csso/actions/workflows/test.yml)

Minify CSS with [CSSO](http://github.com/css/csso).

## Install

Execute `Extensions: Install Extensions` command from [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) (Cmd Shift P) and search by **csso**.

Also you can install this extension locally by putting symbolic link from `~/.vscode/extensions` to `~/path/to/this/repo` like below.

```bash
$ ln -s ~/workspace/github.com/1000ch/vscode-csso ~/.vscode/extensions/1000ch.csso-local
```

## Usage

Open the Command Palette (Cmd Shift P) and search following commands.

- **csso: Minify current CSS file**: to minify current CSS file
- **csso: Minify selected part of CSS**: to minify selected part of CSS

You can also execute these commands from context menu of [Explorer](https://code.visualstudio.com/docs/getstarted/userinterface#_explorer) or Editor.

![You can use commands from the context menu of editor view](./screenshot-1.png)

## Config

### [restructure](https://github.com/css/csso#compressast-options)

`true` as default. If you want to disable, set `false`.

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)