rushstack-legacy/core-build/gulp-core-build-sass
Pete Gonzalez 5644d1b9ec Solve the SemVer equation 2021-05-25 20:48:43 -07:00
..
config Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
src Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
.eslintrc.js Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
.npmignore Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
CHANGELOG.json Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
CHANGELOG.md Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
LICENSE Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
README.md Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
gulpfile.js Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00
package.json Solve the SemVer equation 2021-05-25 20:48:43 -07:00
tsconfig.json Copy files from e1d8cef0ac 2021-05-25 20:47:01 -07:00

README.md

@microsoft/gulp-core-build-sass

gulp-core-build-sass is a gulp-core-build subtask which processes sass and scss files using SASS, runs them through postcss, and produces commonjs/amd modules which are injected using the @microsoft/load-themed-styles package.

npm version Build Status Dependencies

SassTask

Usage

This task invokes gulp-sass to compile source SASS files into a CommonJS module which uses load-themed-styles to load styles onto the page. If the libAmdFolder is specified globally, this task will also output an AMD module. Various templates may be specified.

Config

preamble

An optional parameter for text to include in the generated typescript file.

Default: '/* tslint:disable */'

postamble

An optional parameter for text to include at the end of the generated typescript file.

Default: '/* tslint:enable */'

sassMatch

An array of glob patterns for locating SASS files.

Default: ['src/**/*.scss']

useCSSModules

If this option is specified, ALL files will be treated as module.sass or module.scss and will automatically generate a corresponding TypeScript file. All classes will be appended with a hash to help ensure uniqueness on a page. This file can be imported directly, and will contain an object describing the mangled class names.

Default: false

dropCssFiles

If this is false, then we do not create .css files in the lib directory.

Default: false

warnOnNonCSSModules

If files are matched by sassMatch which do not end in .module.sass or .module.scss, log a warning.

Default: false

License

MIT