diff --git a/examples/declarative_shadow_dom/component.ts b/examples/declarative_shadow_dom/component.ts index 73d87dc7..4d421093 100644 --- a/examples/declarative_shadow_dom/component.ts +++ b/examples/declarative_shadow_dom/component.ts @@ -1,4 +1,4 @@ -import { inlineStyle } from 'rules_prerender'; +import { inlineStyleLegacy } from 'rules_prerender'; import { polyfillDeclarativeShadowDom } from 'rules_prerender/declarative_shadow_dom'; /** Renders an example component using Declarative Shadow DOM. */ @@ -13,7 +13,7 @@ export async function renderComponent(lightDom: string): Promise { ${polyfillDeclarativeShadowDom()} - ${await inlineStyle('rules_prerender/examples/declarative_shadow_dom/component.css')} + ${await inlineStyleLegacy('rules_prerender/examples/declarative_shadow_dom/component.css')} diff --git a/examples/site/about/about.ts b/examples/site/about/about.ts index 99aef3d3..d8d3fe19 100644 --- a/examples/site/about/about.ts +++ b/examples/site/about/about.ts @@ -1,4 +1,4 @@ -import { PrerenderResource, inlineStyle } from 'rules_prerender'; +import { PrerenderResource, inlineStyleLegacy } from 'rules_prerender'; import { polyfillDeclarativeShadowDom } from 'rules_prerender/declarative_shadow_dom'; import { baseLayout } from 'rules_prerender/examples/site/components/base/base'; import { srcLink } from 'rules_prerender/examples/site/common/links'; @@ -57,7 +57,7 @@ export default async function*(): dignissim quis, venenatis non mi. Curabitur lacinia tincidunt vulputate. Proin non vehicula risus, id pharetra lorem.

- ${await inlineStyle('rules_prerender/examples/site/about/about.css')} + ${await inlineStyleLegacy('rules_prerender/examples/site/about/about.css')} `), diff --git a/packages/rules_prerender/index.ts b/packages/rules_prerender/index.ts index 7bfeba3c..b424d795 100644 --- a/packages/rules_prerender/index.ts +++ b/packages/rules_prerender/index.ts @@ -2,4 +2,4 @@ export { PrerenderResource } from 'rules_prerender/common/models/prerender_resource'; export { includeScript } from 'rules_prerender/packages/rules_prerender/scripts'; -export { includeStyle, inlineStyle } from 'rules_prerender/packages/rules_prerender/styles'; +export { includeStyle, inlineStyleLegacy } from 'rules_prerender/packages/rules_prerender/styles'; diff --git a/packages/rules_prerender/styles.ts b/packages/rules_prerender/styles.ts index 5537554e..0f216ef0 100644 --- a/packages/rules_prerender/styles.ts +++ b/packages/rules_prerender/styles.ts @@ -19,7 +19,7 @@ export function includeStyle(path: string): string { * Reads the given CSS file at the provided runfiles path and returns it in a * `