Skip to content

Commit

Permalink
Expose the ssr mode in the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jul 15, 2020
1 parent f9f5356 commit 1462c62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/parseCommandLineOptions.js
Expand Up @@ -72,6 +72,12 @@ module.exports = function parseCommandLineOptions(argv) {
type: 'boolean',
default: false,
})
.options('ssr', {
describe:
'Include all subsets on every page, suitable for an SSR application where page navigations are intercepted',
type: 'boolean',
default: false,
})
.options('recursive', {
alias: 'r',
describe:
Expand Down
2 changes: 2 additions & 0 deletions lib/subfont.js
Expand Up @@ -18,6 +18,7 @@ module.exports = async function subfont(
fontDisplay = 'swap',
formats = ['woff2', 'woff'],
subsetPerPage = false,
ssr = false,
inPlace = false,
inputFiles = [],
recursive = false,
Expand Down Expand Up @@ -182,6 +183,7 @@ module.exports = async function subfont(
inlineCss,
fontDisplay,
subsetPerPage,
ssr,
formats,
omitFallbacks: !fallbacks,
dynamic,
Expand Down

0 comments on commit 1462c62

Please sign in to comment.