Commit fc4fcf33 authored by Phil Hughes's avatar Phil Hughes

Added gzip compression

parent 8a643c8f
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
var path = require('path'); var path = require('path');
var webpack = require('webpack'); var webpack = require('webpack');
var StatsPlugin = require('stats-webpack-plugin'); var StatsPlugin = require('stats-webpack-plugin');
var CompressionPlugin = require("compression-webpack-plugin");
var IS_PRODUCTION = process.env.NODE_ENV === 'production'; var IS_PRODUCTION = process.env.NODE_ENV === 'production';
var IS_DEV_SERVER = process.argv[1].indexOf('webpack-dev-server') !== -1; var IS_DEV_SERVER = process.argv[1].indexOf('webpack-dev-server') !== -1;
...@@ -79,7 +80,10 @@ var config = { ...@@ -79,7 +80,10 @@ var config = {
chunks: false, chunks: false,
modules: false, modules: false,
assets: true assets: true
}) }),
new CompressionPlugin({
asset: '[path].gz[query]',
}),
], ],
resolve: { resolve: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment