Skip to content

ngstarter/gzip-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gzip-extension

Gzipped build and serve for your Angular 2 Starter

Perfect for tracking your build size with gzip compression ❤️

npm version

Getting started

  1. Install the extension

    npm install @ngstarter/gzip-extension --save-dev
  2. Require the extension in any tasks file, for example in tasks/serve.js

    // Load gulp config
    var config = require('../config')();
    
    // Load extension with config
    require('@ngstarter/gzip-extension')(config);
  3. Try running

    gulp serve-build-gzip
  4. Now check the network requests in your browser, HTML/CSS/JS files should be gzipped already

License

MIT