mk_static 1.0.1 copy "mk_static: ^1.0.1" to clipboard
mk_static: ^1.0.1 copied to clipboard

Dart 1 only

Eliminates a 404 get on the .css and .js files in absence of internet by transforming js and link[rel=stylesheet] remote sources into local ones. This library is the dev dependency.

mk_static #

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.

Usage #

To use, add mk_static to your pubspec:

dev_dependencies:
  mk_static: "^1.0.0"

Then, add the transformer:

transformers:
  - mk_static

Also you can point to your files directly:

transformers:
  - mk_static:
      entry_points:
        - web/index.html

And configure user-agent string:

transformers:
  - mk_static:
      user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"

Bugs/requests #

Please report bugs and feature requests.

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Eliminates a 404 get on the .css and .js files in absence of internet by transforming js and link[rel=stylesheet] remote sources into local ones. This library is the dev dependency.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

barback, html, http, path

More

Packages that depend on mk_static