leajs-encoding
v0.1.0
Published
extracting inline critical css from html
Downloads
220
Readme
leajs-encoding
Plugin of leajs.
handles the encoding.
leajs.config
module.exports = {
// Should responses get encoded
// Default: inProduction
encode: null, // Boolean
// Options used for zlib encoder
encodeOptions: {}, // Object
// Should save encoded file besides existing plain file
// Default: inProduction
encodeSave: null, // Boolean
// Lookup table to translate encoding to file extension
// type: Object
encodedTable: {"gzip":"gz","br":"br"},
// Encoded versions available besides plain file
files.$item.encoded: null, // Array
// Encoded versions available besides plain file
folders.$item.encoded: null, // Array
// …
}
License
Copyright (c) 2018 Paul Pflugradt Licensed under the MIT license.