Sass :compressed

Last Updated:

Sass :compressed

Sass :compressed is one of the sass's output style. It removes as many extra characters as possible, and writes the entire stylesheet on a single line.

Tips: Sass :compressed is highly recommended output styling because reduced file size helps browsers to render the file(.css) as fast as possible to the end-user.

Example

basic.scss
body { text-align: right; a, a:visited { padding: 0 3px; color: #222222; } a:hover { color: #B00909; } }

Execute the following command.

Command Prompt
sass --watch scss/basic.scss:css/basic.css --style compressed
Basic.css
body{text-align:right}body a,body a:visited{padding:0 3px;color:#222222}body a:hover{color:#B00909}

Share this Page

Meet the Author