-
Notifications
You must be signed in to change notification settings - Fork 9
SCSSPHP not finding imports #2
Copy link
Copy link
Open
Description
Hi me again :)
I've download the latest version of shrink to test the inclusion of Scssphp to do the compiling of Sass files via PHP instead of Ruby.
It works fine for single files but not for imports.
e.g.
If I pass it a file with JUST the following inside:
@import "compass/utilities";
@import "compass/typography";
@import "compass/css3";
The returned code will be empty.
To test this further I amended the code like so:
$code = $scss->compile(file_get_contents($file->read()));
echo $code; exit;
and I get the following errors:
Warning (2): file_get_contents(@import "compass/utilities";
@import "compass/typography";
@import "compass/css3";
) [function.file-get-contents]: failed to open stream: No such file or directory [APP/Plugin/Shrink/Lib/ShrinkType/ShrinkCompiler/ShrinkCompilerScss.php, line 36]
So I'm wondering is the plugin struggling to find the files? Or this error just because of my test? Either way the imports are not working :) Any ideas?
Thanks once again.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels