@geoapps/sass2css
v0.3.0
Published
Converting library SASS to CSS
Downloads
2
Readme
@geoapps/sass2css
This tool is created to convert input SASS file to output CSS file with proper importer function allowing
to use ~
in imported modules' names.
Installation
npm install @geoapps/sass2css --dev
yarn add @geoapps/sass2css --dev
Usage
CLI:
sass2css --base-path /path/to/project/root/dir
Programmatic:
const sass2css = require('@geoapps/sass2css'); sass2css({ basePath: '/path/to/project/root/dir' });
Options
Here is a list of all available options for CLI (programmatic) usage:
--base-path
(basePath
) Path of base directory to resolve everything to (default is.
meaning directory of CLI execution, usually it's a root directory of repository).--input-dir-name
(inputDirName
) Relative path to input directory (default issrc/sass
).--input-file-name
(inputFileName
) Name of input SASS file (default isindex.sass
).--input-img-dir-name
(inputImgDirName
) Relative path to directory with source images (default issrc/img
).--output-dir-name
(outputDirName
) Relative path to output directory (default isdist/css
).--output-img-dir-name
(outputImgDirName
) Relative path to output directory for images (default isdist/img
).--modes
(modes
) Output modes (default is['development', 'production']
).
Changelog
List of code changes for each version is available.