Skip to content

Commit bdb6d40

Browse files
fix: include brotli compression (#29)
1 parent 79edeff commit bdb6d40

File tree

7 files changed

+297
-68
lines changed

7 files changed

+297
-68
lines changed

package-lock.json

Lines changed: 169 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@nguniversal/express-engine": "^6.0.0",
4848
"@types/chalk": "^2.2.0",
4949
"@types/favicons": "^5.1.0",
50+
"@types/iltorb": "^2.0.1",
5051
"@types/inquirer": "^0.0.42",
5152
"@types/npm": "^2.0.29",
5253
"@types/sinon": "^5.0.1",
@@ -73,12 +74,13 @@
7374
"chalk": "^2.4.1",
7475
"favicons": "^5.1.1",
7576
"fuse-box": "^3.3.0",
77+
"iltorb": "^2.3.2",
7678
"inquirer": "^6.0.0",
7779
"ng2-fused": "^0.5.1",
7880
"npm": "^6.1.0",
7981
"rxjs": "^6.2.1",
80-
"tslint": "^5.10.0",
8182
"ts-node": "^7.0.0",
83+
"tslint": "^5.10.0",
8284
"typescript": "2.7.2",
8385
"uglify-js": "^3.4.1",
8486
"yargs": "^11.0.0"

src/commands/serve.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { FuseProcess } from 'fuse-box/FuseProcess'
1818
import { NgAotFactoryPlugin } from '../fusebox/ng.aot-factory.plugin'
1919
import clearTerminal from '../utilities/clear'
2020
import { main as ngc } from '@angular/compiler-cli/src/main'
21+
import { CompressionPlugin } from '../fusebox/compression.plugin'
2122

2223
command(
2324
'serve [port][prod][aot][sw]',
@@ -97,7 +98,8 @@ function serve(isProdBuild = false) {
9798
uglify: config.fusebox.browser.prod.uglify,
9899
treeshake: config.fusebox.browser.prod.treeshake,
99100
bakeApiIntoBundle: 'vendor'
100-
})
101+
}),
102+
CompressionPlugin()
101103
] as any
102104
})
103105

0 commit comments

Comments
 (0)