Reduce a Sass (scss) file structure to a single file by inlining partial imports.
npm install -g sass-flatten
It can read from a file
sass-flatten some/path/input.scss output.scss
or from stdin
cat some/path/input.scss | sass-flatten --include-path some/path/ > output.scss
var flatten = require('sass-flatten');
var input = '@import "some/partial";';
var includePath = 'some/path';
var output = flatten(input, includePath);