web_minify 1.0.1
web_minify: ^1.0.1 copied to clipboard
HTML, CSS and JavaScript minifiers in pure Dart. One call minifies a whole page, inline style and script blocks included, with no external dependencies.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add web_minifyWith Flutter:
$ flutter pub add web_minifyThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
web_minify: ^1.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:web_minify/web_minify.dart';