This repository was archived by the owner on Jul 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,15 @@ Provide automated transcoding from [Dart](https://www.dartlang.org/ 'dartlang.or
22
22
23
23
### Usage
24
24
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
29
29
30
30
Initialization takes either dart-sourcecode directly or an instance of ` File ` as first argument and
31
31
an options-hash as second argument. ` :dart2js_binary ` and ` :out_file ` may be provided with the options-hash.
32
32
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.
You can’t perform that action at this time.
0 commit comments