Skip to content

Commit

Permalink
Merge pull request #2 from nickpape/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
dzearing committed Mar 29, 2016
2 parents 98a467c + b6cdc74 commit a60506a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# gulp-core-build-sass
`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
```typescript
interface ISassTaskConfig {
sassMatch?: string[];
commonModuleTemplate: string;
amdModuleTemplate: string;
}
```
* **

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

0 comments on commit a60506a

Please sign in to comment.