Skip to content

Commit ab35ccf

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

File tree

4 files changed

+0
-123
lines changed

4 files changed

+0
-123
lines changed

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"@angular/compiler-cli": "^2.3.1",
4444
"@angular/core": "^2.3.1",
4545
"@angular/tsc-wrapped": "^0.5.0",
46-
"async": "^2.1.4",
4746
"autoprefixer": "^6.5.3",
4847
"chalk": "^1.1.3",
4948
"common-tags": "^1.3.1",
@@ -103,7 +102,6 @@
103102
"webpack": "~2.2.0",
104103
"webpack-dev-server": "~2.2.0",
105104
"webpack-merge": "^2.4.0",
106-
"webpack-sources": "^0.1.3",
107105
"zone.js": "^0.7.2"
108106
},
109107
"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

-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"dependencies": {
2929
"@ngtools/json-schema": "1.0.3",
3030
"@ngtools/webpack": "1.2.9",
31-
"async": "^2.1.4",
3231
"autoprefixer": "^6.5.3",
3332
"chalk": "^1.1.3",
3433
"common-tags": "^1.3.1",
@@ -84,7 +83,6 @@
8483
"webpack": "~2.2.0",
8584
"webpack-dev-server": "~2.2.0",
8685
"webpack-merge": "^2.4.0",
87-
"webpack-sources": "^0.1.3",
8886
"zone.js": "^0.7.2"
8987
},
9088
"ember-addon": {

0 commit comments

Comments
 (0)