Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Commit ae601c9

Browse files
committed
Successfully tested minifying
1 parent b251dc9 commit ae601c9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ Provide automated transcoding from [Dart](https://www.dartlang.org/ 'dartlang.or
2222

2323
### Usage
2424

25-
transcoder = Dart2Js.new(file, options)
26-
transcoder.compile
27-
transcoder.get_js_content
28-
transcoder.out_file
25+
dart_compiler = Dart2Js.new(file, options)
26+
dart_compiler.compile
27+
dart_compiler.get_js_content
28+
dart_compiler.out_file
2929

3030
Initialization takes either dart-sourcecode directly or an instance of `File` as first argument and
3131
an options-hash as second argument. `:dart2js_binary` and `:out_file` may be provided with the options-hash.
3232

33-
`transcoder.compile` actually runs the `dart2js` command, the output of the run will be saved in `@result` and
34-
the final js stays in `@out_file` and may be read with `transcoder.get_js_content`.
33+
`dart_compiler.compile` actually runs the `dart2js` command, the output of the run will be saved in `@result` and
34+
the final js stays in `@out_file` and may be read with `dart_compiler.get_js_content`.
35+
36+
With version 0.2.0 `Dart2Js::compile` now accepts a boolean argument for minifying, it's optional and `true` by default.

0 commit comments

Comments
 (0)