Skip to content

Commit 6d5aafb

Browse files
flolualexeagle
authored andcommitted
fix(example): remove server side compression
1 parent 481fa21 commit 6d5aafb

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

examples/angular/src/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ pkg_web(
253253
# Include polyfills that will be requested by old browsers
254254
"@npm//:node_modules/systemjs/dist/system.js",
255255
"@npm//:node_modules/core-js/client/core.min.js",
256-
# NOW needed ?"index.html",
256+
"index.html",
257257
],
258258
# In production mode we serve some polyfills with script tags that have hard-coded paths in the index.html
259259
# so we must serve them at that path, by stripping a prefix

examples/angular/src/server.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ const app = express();
1212
const port = process.env.PORT || 4000;
1313
const DIST_FOLDER = join(process.cwd(), 'src/pwa');
1414

15-
/**
16-
* text compression for smaller download sizes and thus faster load times
17-
* without compression: 1.4 MB
18-
* with compresion: 321 kB
19-
*/
20-
app.use(compression());
21-
2215
app.engine('html', ngExpressEngine({ bootstrap: AppServerModule }) as any);
2316
app.set('view engine', 'html');
2417
app.set('views', DIST_FOLDER);

0 commit comments

Comments
 (0)