mirror of https://github.com/AMT-Cheif/drift.git
Example app: Add explanatory comment to copy builder
This commit is contained in:
parent
6a6d1268c4
commit
429d36ff9c
|
@ -36,12 +36,12 @@ targets:
|
|||
# Configuring this builder isn't required for most apps. In our case, we
|
||||
# want to compile the web worker in `web/worker.dart` to JS and we use the
|
||||
# build system for that.
|
||||
build_web_compilers|entrypoint:
|
||||
build_web_compilers:entrypoint:
|
||||
generate_for:
|
||||
- web/worker.dart
|
||||
options:
|
||||
compiler: dart2js
|
||||
"|copy_compiled_worker_js":
|
||||
":copy_compiled_worker_js":
|
||||
enabled: true
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
import 'package:build/build.dart';
|
||||
|
||||
/// Builder that copies the (hidden, `build_to: cache`) output of
|
||||
/// `build_web_compilers` into `web/` (visible, this builder is defined with
|
||||
/// `build_to: source`).
|
||||
class CopyCompiledJs extends Builder {
|
||||
CopyCompiledJs([BuilderOptions? options]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue