Skip to content

Commit

Permalink
Default outputStyle to compressed in release mode (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsenft authored and nshahan committed Jul 2, 2018
1 parent feb079f commit 888e8b2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.0

* Output style is now `compressed` by default for release builds.

## 2.0.3

* Upgrade selected package dependencies.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ dev_dependencies:
To configure options for the builder see the `build_config`
[README](https://github.com/dart-lang/build/blob/master/build_config/README.md).

* `outputStyle`: Supports `expanded` or `compressed`. Defaults to `expanded`.
* `outputStyle`: Supports `expanded` or `compressed`. Defaults to `expanded` in
dev mode, and `compressed` in release mode.

Example:
Example that compresses output in dev mode:

```yaml
targets:
Expand Down
3 changes: 3 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ builders:
.sass: [".css"]
applies_builders:
- sass_builder|sass_source_cleanup
defaults:
release_options:
outputStyle: compressed
post_process_builders:
sass_source_cleanup:
import: "package:sass_builder/sass_builder.dart"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass_builder
version: 2.0.3
version: 2.1.0

authors:
- Luis Vargas <[email protected]>
Expand Down

0 comments on commit 888e8b2

Please sign in to comment.