We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
var brotli = require('brotli'); var fs = require('fs'); var brotliSettings = { extension: 'br', skipLarger: true, mode: 1, quality: 10, lgwin: 12, // default }; fs.readdirSync('dist/').forEach(function(file) { if (file.endsWith('.js') || file.endsWith('.css') || file.endsWith('.html')) { var result = brotli.compress(fs.readFileSync('dist/' + file), brotliSettings); fs.writeFileSync('dist/' + file + '.br', result); } });
{ /* ... */ "scripts": { "build-prod": "ng build --prod && node compress.js" } /* ... */ }
index.html
FE / Angular
Golang
DevOps
Editorconfig
Agile process and SCRUM
Internship
Bootcamp