sofa-style-resolver
v0.1.2
Published
Constructs a minimal list of SCSS includes for your sofa apps
Readme
Sofa Style Resolver
This Gulp Plugin takes the root package.json of your Sofa App and constructs a minimal
list of SCSS includes for your app, reducing dead code. You can also replace or exclude files,
which are included by this task.
Basic Usage
gulp.src('package.json', {read: false})
.pipe(sofaStyleResolver())
.pipe(gulp.dest('whereever'));Options
exclude[Array]: Array of files that should be excluded.replace[Object]: Key value paires of file names that should be replaced, e. g.{'functions': 'my-functions'}.userFiles[Array]: Array of files that should also be included at the bottom.before[Array]: Array of files that will be included before anything else.afterVars[Array]: Array of files that will be included after the import of the theme's variable file. This would be the place to overwrite theme variables.after[Array]: Array of files that willl be included after the theme files, but before theuserFiles.
