### Basic SCSS Server Setup Source: https://github.com/scssphp/server/blob/master/README.md Use this snippet to quickly start serving compiled SCSS files. Ensure the specified directory exists and contains your SCSS files. ```php use ScssPhp\Server\Server; $directory = "stylesheets"; $server = new Server($directory); $server->serve(); ``` -------------------------------- ### SCSS Server Input Not Found Error Source: https://github.com/scssphp/server/blob/master/README.md This is an example of the HTTP 404 response when a requested SCSS file is not found. ```text /* INPUT NOT FOUND scss v0.0.1 */ ``` -------------------------------- ### SCSS Server Compilation Error Source: https://github.com/scssphp/server/blob/master/README.md This is an example of an HTTP 500 error response when an SCSS file fails to compile. ```text Parse error: failed at 'height: ;' stylesheets/test.scss on line 8 ``` -------------------------------- ### SCSS Server with Compressed Output Style Source: https://github.com/scssphp/server/blob/master/README.md Configure the SCSS compiler to output compressed CSS and set up the server. The cache directory defaults to './scss_cache' if not specified. ```php use ScssPhp\ScssPhp\Compiler; use ScssPhp\Server\Server; $scss = new Compiler(); $scss->setOutputStyle(\\ScssPhp\\ScssPhp\\OutputStyle::COMPRESSED); $server = new Server('stylesheets', null, $scss); $server->serve(); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.