Git Product home page Git Product logo

flutter_web_optimizer's Introduction

中文文档

Intro

A optimization tools for flutter web,solved web page loading slow and browser cache problem.

Features

  • split large file and cdn resource file,optimize web page loading slow.
  • hashed resource file,solve browser cache problem.

Getting started

dev_dependencies:
  flutter_web_optimizer: ^1.0.0

Usage

app_web_optimizer

navigate to the root directory of the project,execute plugin and optimize command

plugin command

the plugin command support auto generate plugin template files,then upload resources files to file servers,such as such as Tencent COS and Alibaba OSS

flutter pub run flutter_web_optimizer plugin --path scripts/test_plugin.dart
  • path parameter required,refers to plugin file path.

optimize command

optimize command support split large file、hashing resource file and cdn resource file.

flutter pub run flutter_web_optimizer optimize --asset-base http://192.168.101.93:9091/app/ --plugin scripts/test_plugin.dart

or

flutter pub run flutter_web_optimizer optimize --asset-base http://192.168.101.93:9091/app/ --plugin flutter_web_cos_upload_plugin
  • asset-base parameter required,refers to file server internet address,it's must end with '/'
  • web-output parameter not required,refers to flutter web build generated artifact path, default as build/web.
  • plugin parameter not required,if needs upload resource file to file server,it's must be required. it support file mode and plugin mode

flutter_web_optimizer's People

Contributors

tryimpossible avatar huang12zheng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.