diff --git a/packages/ui-templates/lib/render.ts b/packages/ui-templates/lib/render.ts index fefc53839c..b75ef27e57 100644 --- a/packages/ui-templates/lib/render.ts +++ b/packages/ui-templates/lib/render.ts @@ -35,8 +35,10 @@ export const RenderPlugin = () => { let html = await fsp.readFile(fileName, 'utf-8') const isCompleteHTML = html.includes('') - // Apply critters to inline styles - html = await critters.process(html) + if (html.includes(']*>/g, '') diff --git a/packages/ui-templates/package.json b/packages/ui-templates/package.json index fa03a26580..17f1c660e6 100644 --- a/packages/ui-templates/package.json +++ b/packages/ui-templates/package.json @@ -27,8 +27,8 @@ "@nuxt/ui-assets": "^0.2.0", "@types/html-minifier": "^4.0.2", "@types/lodash.template": "^4.5.1", - "critters": "^0.0.16", - "execa": "^7.1.1", + "critters": "^0.0.19", + "execa": "^7.2.0", "globby": "^13.2.2", "html-minifier": "^4.0.0", "jiti": "^1.19.1", @@ -36,7 +36,7 @@ "lodash.template": "^4.5.0", "scule": "^1.0.0", "upath": "^2.0.1", - "vite": "^4.4.6", + "vite": "^4.4.7", "vite-plugin-windicss": "^1.9.0", "windicss": "^3.5.6" },