Given a directory, generates an index.sass file for this directory, and any nested directories.
For directory structure:
SASS_FILES
foo.sass
bar.sass
When you run:
require('sass-index')(
dir: 'SASS_FILES/'
)
Adds a new file at SASS_FILES/index.sass, containing:
@import "./foo"
@import "./bar"
Base directory where the SASS files are located.
Default: ./
Directory to generate index of.
Default: ./
List of extensions you want to analyze.
Default: ['.sass','.scss']
Paths to ignore in index generation. Accepts glob syntax, like path/**.
Default: []
Available under the MIT License.