1. Solution that the volume of Main.dart.js is too large after the flutter Web is packaged
A, nginx
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 5;
gzip_types text/plain application/javascript application/css text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png ;
gzip_vary off;
gzip_disable "MSIE [1-6]\.";
Copy the code