Skip to content

Instantly share code, notes, and snippets.

@david-truong
Last active October 3, 2015 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david-truong/716acf595098c8274b5e to your computer and use it in GitHub Desktop.
Save david-truong/716acf595098c8274b5e to your computer and use it in GitHub Desktop.
Options to SF ruby file
Option 1:
return result[0], result[1].to_json({ :css_path => outputFileName, :sourcemap_path => sourceMapFileName })
Option 2:
css = result[0]
sourceMap = result[1].to_json(
{
:css_path => outputFileName,
:sourcemap_path => sourceMapFileName
})
return css, sourceMap
Option 3:
return result[0],
result[1].to_json(
{
:css_path => outputFileName,
:sourcemap_path => sourceMapFileName
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment