sass / libsass-net

A lightweight wrapper around libsass
MIT License
94 stars 35 forks source link

@import throws SassCompileException with message "Unknown error occurred" #15

Closed Larivact closed 7 years ago

Larivact commented 9 years ago

If there is a @import in the input file I get a SassCompileException with the message "Unknown error occurred". The file _reset.scss exists and is in the same folder. Compiling SASS without @import works.

/* base.scss */

@import 'reset';
//@import '_reset.scss'; doesn't work either

SassCompiler sc = new SassCompiler();
string inputPath = "C:\\Users\\unknown\\Desktop\\tmp\\base.scss";

try
{
    CompileFileResult result = sc.CompileFile(inputPath);
    Console.WriteLine(result.CSS);
}
catch (SassCompileException sce)
{
    Console.WriteLine(sce.Message);     
}

Console.ReadKey();