This package has been deprecated

Author message:

Use @microsoft/gulp-core-build-sass instead.

gulp-core-build-sass
TypeScript icon, indicating that this package has built-in type declarations

0.3.8 • Public • Published

gulp-core-build-sass npm version

Build Status Dependencies

gulp-core-build-sass is a plugin for gulp-core-build which introduces the ability to compile SASS files to CSS.

Tasks

SassTask

Description

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

 interface ISassTaskConfig {
  sassMatch?: string[];
  commonModuleTemplate: string;
  amdModuleTemplate: string;
}

Usage (and defaults):

sass.setConfig({
  sassMatch: [
    'src/**/*.scss'
  ],
  commonModuleTemplate: "require('load-themed-styles').loadStyles(<%= content %>);",
  amdModuleTemplate: "define(['load-themed-styles'], function(loadStyles) { loadStyles.loadStyles(<%= content %>); });"
});

/gulp-core-build-sass/

    Package Sidebar

    Install

    npm i gulp-core-build-sass

    Weekly Downloads

    24

    Version

    0.3.8

    License

    MIT

    Last publish

    Collaborators

    • dzearing