Skip to content

jackchenl/webpack-compression-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

To begin, you'll need to install webpack-compression-plugin:

$ npm install webpack-compression-plugin --save-dev

Then add the plugin to your webpack config. For example: webpack.config.js

const CompressionWebpackPlugin = require('webpack-compression-plugin');
module.exports = {
  plugins: [  new CompressionWebpackPlugin({
        originPath: `${__dirname}/build`,
        outputPath: `${__dirname}/build.zip`,
      })],
};

About

compression build files

Resources

Stars

Watchers

Forks

Packages

No packages published