Skip to content

Commit

Permalink
update readme.
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Mar 22, 2015
1 parent fdbb642 commit 7c5afc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ PS. Current compass `0.12.4` version doesn't support `--sourcemap` flag, please

**description:** GENERATED_IMAGES_PATH. Support `--generated-images-path` parameter.

#### task

**default:** compile

**description:** Support compass primary commands: compile or watch.


## Running tests

```
Expand Down
7 changes: 4 additions & 3 deletions lib/compass.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ var PLUGIN_NAME = 'gulp-compass',
time: false,
sourcemap: false,
boring: false,
force: false
force: false,
task: 'compile'
};

module.exports = function(file, opts, callback) {
Expand Down Expand Up @@ -60,13 +61,13 @@ module.exports = function(file, opts, callback) {
if (opts.bundle_exec) {
options.push('exec', 'compass');
}
options.push(opts.task || 'compile');
options.push(opts.task);
if (process.platform === 'win32') {
options.push(opts.project.replace(/\\/g, '/'));
} else {
options.push(opts.project);
}

if (opts.task !== 'watch') {
options.push(file_path);
}
Expand Down

0 comments on commit 7c5afc4

Please sign in to comment.