diff --git a/lib/sassc/engine.rb b/lib/sassc/engine.rb index 5fd93143..f95c1679 100644 --- a/lib/sassc/engine.rb +++ b/lib/sassc/engine.rb @@ -25,6 +25,7 @@ def render Native.option_set_is_indented_syntax_src(native_options, true) if sass? Native.option_set_input_path(native_options, filename) if filename + Native.option_set_output_path(native_options, output_path) if output_path Native.option_set_precision(native_options, precision) if precision Native.option_set_include_path(native_options, load_paths) Native.option_set_output_style(native_options, output_style_enum) @@ -73,6 +74,10 @@ def filename @options[:filename] end + def output_path + @options[:output_path] + end + private def quiet? diff --git a/test/engine_test.rb b/test/engine_test.rb index e8afdf64..868ea0ca 100644 --- a/test/engine_test.rb +++ b/test/engine_test.rb @@ -160,6 +160,57 @@ def test_source_map MAP end + def test_source_map_filenames + temp_dir('admin') + + temp_file('admin/text-color.scss', <