PHP code example of ikkez / f3-assets-sass
1. Go to this page and download the library: Download ikkez/f3-assets-sass library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ikkez / f3-assets-sass example snippets
// register sass handler
\Assets\Sass::instance()->init();
$opt = [
'watch'=>'ext/*.scss'
];
\Assets::instance()->add('scss/main_styles.scss', 'css', 'head', 5, NULL, $opt);