-
sassResolve(root, opts, cb)
-
Resolves paths to all .scss files from the current package and its dependencies. The location of these sass files is indicated in the "main.scss" field inside packags.json. It then generates the css file including all the rules found in the resolved .scss files. Additionally it generates a .css.map file to enable sass source maps if so desired.
Parameters:
Name Type Argument Description root
string path to the current package
opts
Object <optional>
configure if and how source maps are created and if a css file is written
Properties
Name Type Argument Description debug
boolean <optional>
(default: true) generate source maps
inlineSourceMap
boolean <optional>
(default: true) inline entire source map info into the .css file instead of referring to an external .scss.map file
imports
function <optional>
allows overriding how imports are resolved (see: resolveScssFiles and importsFromScssFiles)
mapFileName
string <optional>
(default: 'transpiled.css.map') name of the source map file to be included at the bottom of the generated css (not relevant when source maps are inlined)
cb
function function (err, res]) {}, called when all scss files have been transpiled, when nowrite is true, res contains generated
css
andmap
(if sourcemaps were enabled and not inlined) -
sassResolve::imports(root, cb)
-
Resolves all paths of all .scss files of this project and its dependencies and generates the sass imports for them
Parameters:
Name Type Description root
String full path to the project whose sass files to resolve
cb
function called back with imports for the .scss files or an error if one occurred
-
sassResolve::resolveScssFiles(root, cb)
-
Resolves paths to all .scss files from the current package and its dependencies. The location of these sass files is indicated in the "main.scss" field inside packags.json.
Parameters:
Name Type Description root
String full path to the project whose scss files to resolve
cb
function called back with a list of paths to .scss files or an error if one occurred
-
sassResolve::scssFilesToImports(scssFiles) → {String}
-
Creates a .scss import string from the previously resolved sass paths (see: resolveScssFiles) This function is called by
imports
and exposed as an advanced api if more manual tweaking is needed.Parameters:
Name Type Description scssFiles
Array paths to resolved
.scss
filesReturns:
of @import statements for each
.scss
file- Type
- String
Maintenance
Commit Frequency
Further analysis of the maintenance status of @gautamarora/sass-resolve based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for @gautamarora/sass-resolve is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.