bond211 / php-sass-compiler
SASS compiler for PHP
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.1|^8.0
- scssphp/scssphp: ^1.10.5
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Features
Supported modes
- (default) compile if not-include files changed: can be used in production env if you really need to
- compile if any files changed: handy during local development
- force compile without any modification check: in case you need it
Output formats
Checkout https://github.com/scssphp/scssphp/tree/master/src/Formatter
Default is Compressed
.
Imports
Changes @import "~
to @import "../node_modules/
Installation
composer require bond211/php-sass-compiler
Usage
Laravel
Add e.g. in AppServiceProvider
:
if (App::environment('local') && !App::runningInConsole()) {
SassCompiler::run(resource_path('sass/'), public_path('css/'), Mode::CHECK_INCLUDES);
}