Skip to content

Commit

Permalink
fix(example): remove server side compression
Browse files Browse the repository at this point in the history
  • Loading branch information
flolu authored and alexeagle committed Oct 17, 2020
1 parent 481fa21 commit 6d5aafb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion examples/angular/src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ pkg_web(
# Include polyfills that will be requested by old browsers
"@npm//:node_modules/systemjs/dist/system.js",
"@npm//:node_modules/core-js/client/core.min.js",
# NOW needed ?"index.html",
"index.html",
],
# In production mode we serve some polyfills with script tags that have hard-coded paths in the index.html
# so we must serve them at that path, by stripping a prefix
Expand Down
7 changes: 0 additions & 7 deletions examples/angular/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ const app = express();
const port = process.env.PORT || 4000;
const DIST_FOLDER = join(process.cwd(), 'src/pwa');

/**
* text compression for smaller download sizes and thus faster load times
* without compression: 1.4 MB
* with compresion: 321 kB
*/
app.use(compression());

app.engine('html', ngExpressEngine({ bootstrap: AppServerModule }) as any);
app.set('view engine', 'html');
app.set('views', DIST_FOLDER);
Expand Down

0 comments on commit 6d5aafb

Please sign in to comment.