Skip to content

Commit

Permalink
feat(prerender): do not inline external styles by default
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Oct 27, 2020
1 parent e737857 commit 044aa96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/compiler/prerender/prerender-hydrate-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getHydrateOptions = (prerenderConfig: d.PrerenderConfig, url: URL,
addModulePreloads: true,
approximateLineWidth: 100,
hashAssets: 'querystring',
inlineExternalStyleSheets: true,
inlineExternalStyleSheets: false,
minifyScriptElements: true,
minifyStyleElements: true,
removeAttributeQuotes: true,
Expand Down
8 changes: 4 additions & 4 deletions src/declarations/stencil-public-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,16 +765,16 @@ export interface PrerenderHydrateOptions extends SerializeDocumentOptions {
*/
addModulePreloads?: boolean;
/**
* Hash the content of assets, such as images, fonts and css files,
* Hash the content of assets, such as images, fonts and css files,
* and add the hashed value as `v` querystring. For example,
* `/assets/image.png?v=abcd1234`. This allows for assets to be
* heavily cached by setting the server's response header with
* `/assets/image.png?v=abcd1234`. This allows for assets to be
* heavily cached by setting the server's response header with
* `Cache-Control: max-age=31536000, immutable`.
*/
hashAssets?: 'querystring';
/**
* External stylesheets from `<link rel="stylesheet">` are instead inlined
* into `<style>` elements. Defaults to `true`.
* into `<style>` elements. Defaults to `false`.
*/
inlineExternalStyleSheets?: boolean;
/**
Expand Down

0 comments on commit 044aa96

Please sign in to comment.