dart_to_js_script_rewriter 1.0.3 dart_to_js_script_rewriter: ^1.0.3 copied to clipboard
Replaces Dart script tags with JavaScript script tags, speeding up initial loads and reducing 404s. Use when ready to deploy.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart_to_js_script_rewriter
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart_to_js_script_rewriter: ^1.0.3
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart_to_js_script_rewriter/dart_to_js_script_rewriter.dart';