mk_static 1.0.0

  • Installing
  • Versions
  • 68


A transformer for pub.

Searches all .html in web and test folders and eliminates a 404 get on the .css and .js files in absence of internet by transforming javascript[src] and link[rel=stylesheet] remote sources into local ones.

This library is the dev dependency and works only for production build mode.


To use, add mk_static to your pubspec:

  mk_static: "^1.0.0"

Then, add the transformer:

  - mk_static

Also you can point to your files directly:

  - mk_static:
        - web/index.html


Please report bugs and feature requests.


  • Initial release.

1. Depend on it

Add this to your package's pubspec.yaml file:

  mk_static: "^1.0.0"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:mk_static/transformer.dart';
Version Uploaded Documentation Archive
1.0.0 Dec 15, 2017 Go to the documentation of mk_static 1.0.0 Download mk_static 1.0.0 archive


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1


Describes how popular the package is relative to other packages. [more]
36 / 100
Code health derived from static analysis. [more]
98 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]


Detected platforms: Flutter, other

Platform components identified in package: build, io.


  • The description is too long.

    Search engines will display only the first part of the description. Try to keep it under 180 characters.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use mk_static.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.13.0 <2.0.0
barback ^0.15.2+7 0.15.2+14
html >=0.12.0 <0.14.0 0.13.2+2
http ^0.11.3+16 0.11.3+16
path ^1.5.1 1.5.1
Transitive dependencies
args 1.3.0
async 2.0.3
charcode 1.1.1
collection 1.14.5
csslib 0.14.1
http_parser 3.1.1
logging 0.11.3+1
pool 1.3.4
source_span 1.4.0
stack_trace 1.9.1
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4