Skip to content

Commit

Permalink
Add note to custom output about mergeTrees
Browse files Browse the repository at this point in the history
Since it's basically required for now.
  • Loading branch information
Ilya Radchenko committed Oct 13, 2015
1 parent e56205a commit 4a8a362
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ take an object of sub options: http://lesscss.org/usage/#programmatic-usage
## Configuring Input/Output Paths

You can configure the input and output files using ember-cli's `outputPaths` option in `ember-cli-build.js`:

```javascript
var app = new EmberApp({
outputPaths: {
Expand All @@ -51,10 +52,17 @@ var app = new EmberApp({
'theme-purple': '/assets/theme-purple.css'
}
}
},
lessOptions: {
mergeTrees: {
overwrite: true
}
}
});
```

Notice that the `mergeTrees.overwrite` option is currently required for this to work.

## Usage in Addons

You can also use this to precompile less files in an addon. By default, this
Expand Down

0 comments on commit 4a8a362

Please sign in to comment.