Skip to content

Commit 001068d

Browse files
committed
refactor(@angular/cli): remove compression plugin
Followup from angular#4618
1 parent 4543be9 commit 001068d

File tree

4 files changed

+0
-121
lines changed

4 files changed

+0
-121
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
"webpack": "~2.2.0",
104104
"webpack-dev-server": "~2.2.0",
105105
"webpack-merge": "^2.4.0",
106-
"webpack-sources": "^0.1.3",
107106
"zone.js": "^0.7.2"
108107
},
109108
"ember-addon": {

packages/@angular/cli/lib/webpack/compression-plugin.ts

-112
This file was deleted.

packages/@angular/cli/models/webpack-configs/production.ts

-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as fs from 'fs';
44
import { stripIndent } from 'common-tags';
55
import { StaticAssetPlugin } from '../../plugins/static-asset';
66
import { GlobCopyWebpackPlugin } from '../../plugins/glob-copy-webpack-plugin';
7-
import { CompressionPlugin } from '../../lib/webpack/compression-plugin';
87
import { WebpackConfigOptions } from '../webpack-config';
98

109

@@ -75,12 +74,6 @@ export const getProdConfig = function (wco: WebpackConfigOptions) {
7574
mangle: { screw_ie8: true },
7675
compress: { screw_ie8: true, warnings: buildOptions.verbose },
7776
sourceMap: buildOptions.sourcemap
78-
}),
79-
new CompressionPlugin({
80-
asset: '[path].gz[query]',
81-
algorithm: 'gzip',
82-
test: /\.js$|\.html$|\.css$/,
83-
threshold: 10240
8477
})
8578
].concat(extraPlugins)
8679
};

packages/@angular/cli/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"webpack": "~2.2.0",
8585
"webpack-dev-server": "~2.2.0",
8686
"webpack-merge": "^2.4.0",
87-
"webpack-sources": "^0.1.3",
8887
"zone.js": "^0.7.2"
8988
},
9089
"ember-addon": {

0 commit comments

Comments
 (0)