Skip to content

SCSSPHP not finding imports #2

@iamdriz

Description

@iamdriz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions