gzip loader module for webpack
Enables loading gzipped resources.
npm install --save-dev gzip-loader
webpack.config.js
module.exports = { module: { rules: [ { test: /\.gz$/, enforce: 'pre', use: 'gzip-loader' } ] } }
bundle.js
require("gzip-loader!./file.js.gz");
John-David Dalton |
Juho Vepsäläinen |
Joshua Wiens |
Michael Ciniawsky |
Alexander Krasnoyarov |
© JS Foundation and other contributors
Licensed under the Creative Commons Attribution License 4.0.
https://webpack.js.org/loaders/gzip-loader