dart-lang / build

A build system for Dart written in Dart
https://pub.dev/packages/build
BSD 3-Clause "New" or "Revised" License
784 stars 205 forks source link

Development server should support/use compression? #1184

Open matanlurey opened 6 years ago

matanlurey commented 6 years ago

i.e. GZip or Brotli.

The reason for this is that often Dart2JS can GZip quite well, but you don't see the benefit of it until you deploy to a server that supports it. I (believe?) pub serve supported this.

jakemac53 commented 6 years ago

For local development we did some tests and found it actually slows things down - but if developing remotely it can be beneficial. I think this should be opt-in, but is reasonable to have an option for.

It would also be useful to be able to run pagespeed tests with the gzipped version of your app during development.