Skip to content

Commit 044aa96

Browse files
committed
feat(prerender): do not inline external styles by default
1 parent e737857 commit 044aa96

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/compiler/prerender/prerender-hydrate-options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const getHydrateOptions = (prerenderConfig: d.PrerenderConfig, url: URL,
99
addModulePreloads: true,
1010
approximateLineWidth: 100,
1111
hashAssets: 'querystring',
12-
inlineExternalStyleSheets: true,
12+
inlineExternalStyleSheets: false,
1313
minifyScriptElements: true,
1414
minifyStyleElements: true,
1515
removeAttributeQuotes: true,

src/declarations/stencil-public-compiler.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -765,16 +765,16 @@ export interface PrerenderHydrateOptions extends SerializeDocumentOptions {
765765
*/
766766
addModulePreloads?: boolean;
767767
/**
768-
* Hash the content of assets, such as images, fonts and css files,
768+
* Hash the content of assets, such as images, fonts and css files,
769769
* and add the hashed value as `v` querystring. For example,
770-
* `/assets/image.png?v=abcd1234`. This allows for assets to be
771-
* heavily cached by setting the server's response header with
770+
* `/assets/image.png?v=abcd1234`. This allows for assets to be
771+
* heavily cached by setting the server's response header with
772772
* `Cache-Control: max-age=31536000, immutable`.
773773
*/
774774
hashAssets?: 'querystring';
775775
/**
776776
* External stylesheets from `<link rel="stylesheet">` are instead inlined
777-
* into `<style>` elements. Defaults to `true`.
777+
* into `<style>` elements. Defaults to `false`.
778778
*/
779779
inlineExternalStyleSheets?: boolean;
780780
/**

0 commit comments

Comments
 (0)