mynameiswhm / Brotli Webpack Plugin
Licence: mit
Prepare Brotli-compressed versions of assets to serve them with Content-Encoding: br
Stars: ✭ 198
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Brotli Webpack Plugin
Reactql
Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
Stars: ✭ 1,833 (+825.76%)
Mutual labels: webpack, brotli
Django Webpack Loader
Transparently use webpack with django
Stars: ✭ 2,327 (+1075.25%)
Mutual labels: webpack
Crate
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: ✭ 2,281 (+1052.02%)
Mutual labels: webpack
Mullet
Mullet Stack: Facebook in the front. Walmart in the back. (React, Hapijs, Node)
Stars: ✭ 194 (-2.02%)
Mutual labels: webpack
Polymer Webpack Loader
WebPack Loader for Polymer Web Components
Stars: ✭ 192 (-3.03%)
Mutual labels: webpack
100 Days Of Code Frontend
Curriculum for learning front-end development during #100DaysOfCode.
Stars: ✭ 2,419 (+1121.72%)
Mutual labels: webpack
Webpack By Sample
Learn webpack by sample, each of the samples contains a readme.md file that indicates the purpose of the sample plus an step by step guide to reproduce it.
Stars: ✭ 190 (-4.04%)
Mutual labels: webpack
Webpack Dev Middleware
A development middleware for webpack
Stars: ✭ 2,336 (+1079.8%)
Mutual labels: webpack
Angular Router Loader
A Webpack loader that enables string-based module loading with the Angular Router
Stars: ✭ 194 (-2.02%)
Mutual labels: webpack
Docker Django Webpack Skeleton
Django Skeleton W/ Docker Dev & Production W/ Webpack 2 W/ BabelJS W/ Sass W/ PostgreSQL
Stars: ✭ 191 (-3.54%)
Mutual labels: webpack
React Node Example
a minimalist starter repo for React and Node to deploy to heroku
Stars: ✭ 197 (-0.51%)
Mutual labels: webpack
Are You Es5
A package to help you find out which of your node_modules aren't ES5 so you can add them to your Webpack/Rollup/Parcel transpilation steps.
Stars: ✭ 197 (-0.51%)
Mutual labels: webpack
Limestone
Boilerplate Rails 6 SaaS application with Webpack, Stimulus and Docker integration.
Stars: ✭ 191 (-3.54%)
Mutual labels: webpack
Avalon Webpack Start
webpack3.X(启用tree-shaking,作用域提升功能等),加速项目启动
Stars: ✭ 193 (-2.53%)
Mutual labels: webpack
Feathers Vue
A boiler plate template using Feathers with Email Verification, Vue 2 with Server Side Rendering, stylus, scss, jade, babel, webpack, ES 6-8, login form, user authorization, and SEO
Stars: ✭ 195 (-1.52%)
Mutual labels: webpack
Bundle Buddy Webpack Plugin
🐐🐐🐐🐐 bundle-buddy-webpack-plugin 🐐🐐🐐🐐
Stars: ✭ 199 (+0.51%)
Mutual labels: webpack
Styled React Boilerplate
Minimal & Modern boilerplate for building apps with React & styled-components
Stars: ✭ 198 (+0%)
Mutual labels: webpack
brotli plugin for webpack
This plugin compresses assets with Brotli compression algorithm using zlib, iltorb or brotli.js libraries for serving it with ngx_brotli or such.
Installation
npm install --save-dev brotli-webpack-plugin
Usage
var BrotliPlugin = require('brotli-webpack-plugin');
module.exports = {
plugins: [
new BrotliPlugin({
asset: '[path].br[query]',
test: /\.(js|css|html|svg)$/,
threshold: 10240,
minRatio: 0.8
})
]
}
Arguments:
-
asset
: The target asset name. Defaults to'[path].br[query]'
.-
[file]
is replaced with the original asset file name. -
[fileWithoutExt]
is replaced with the file name minus its extension, e.g. thestyle
ofstyle.css
. -
[ext]
is replaced with the file name extension, e.g. thecss
ofstyle.css
. -
[path]
is replaced with the path of the original asset. -
[query]
is replaced with the query.
-
-
test
: All assets matching this RegExp are processed. Defaults to every asset. -
threshold
: Only assets bigger than this size (in bytes) are processed. Defaults to0
. -
minRatio
: Only assets that compress better that this ratio are processed. Defaults to0.8
. -
deleteOriginalAssets
: remove original files that were compressed with brotli. Default: false
Optional arguments for Brotli (see iltorb doc for details):
-
mode
: Default: 0, -
quality
: Default: 11, -
lgwin
: Default: 22, -
lgblock
: Default: 0, -
size_hint
: Default: 0, -
disable_literal_context_modeling
: Default: false
License
Heavily copy-pasted from webpack/compression-webpack-plugin by Tobias Koppers.
Licensed under MIT.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].