gzip-loader

gzip loader module for webpack

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gzip-loader
1500.0.17 years ago7 years agoMinified + gzip package size for gzip-loader in KB

Readme

!npmnpmnpm-url !depsdepsdeps-url !testtesttest-url !coveragecovercover-url !chatchatchat-url

Install


npm install --save-dev gzip-loader

Usage


webpack.config.js
module.exports = {
  module: {
    rules: [
      {
        test: /\.gz$/,
        enforce: 'pre',
        use: 'gzip-loader'
      }
    ]
  }
}

bundle.js
require("gzip-loader!./file.js.gz");

Maintainers


<tr>
  <td align="center">
    <a href="https://github.com/jdalton">
      <img width="150" height="150" src="https://avatars.githubusercontent.com/u/4303?v=3&s=150">
      </br>
      John-David Dalton
    </a>
  </td>
</tr>