Skip to content

Commit

Permalink
feat(server): add --compress flag for serve:prod:http command
Browse files Browse the repository at this point in the history
Adds GZIP/DEFLATE compression when serving the production build over HTTP
  • Loading branch information
Brett Uglow committed Dec 23, 2016
1 parent 0a707f4 commit 397759d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buildTool/npm/npmResources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ serverProd:
tasks: ["<% if (config.serverProd) { %><%- 'serve-https -p ' + serverProd.port + ' -d ' + paths.output.prodDir + ' --servername ' + serverProd.hostname -%><% } -%>"]

- name: serve:prod:http
tasks: ["<% if (config.serverProd) { %><%- 'serve -C -p ' + serverProd.port + ' ' + paths.output.prodDir -%><% } -%>"]
tasks: ["<% if (config.serverProd) { %><%- 'serve -C --compress -p ' + serverProd.port + ' ' + paths.output.prodDir -%><% } -%>"]


testUnit:
Expand Down

0 comments on commit 397759d

Please sign in to comment.