Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gzip support for JSON pages #571

Merged
merged 18 commits into from
Dec 31, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix gzipping .json pages.
  • Loading branch information
arunoda committed Dec 31, 2016
commit 20d01bac65990c08766982ff38bf9a1e47a2d1b3
2 changes: 1 addition & 1 deletion server/build/gzip.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default async function gzipAssets (dir) {
path.join(nextDir, 'commons.js'),
path.join(nextDir, 'main.js')
]
const pages = await glob('bundles/pages/**/*.js', { cwd: nextDir })
const pages = await glob('bundles/pages/**/*.json', { cwd: nextDir })

const allAssets = [
...coreAssets,
Expand Down