- 0133技术站
- 联系QQ:18840023
- QQ交流群

- 微信公众号

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");
推荐手册