From 63ae3ae0776245b4e228968452d971bfa8ed9f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Radula=C5=A1ki?= Date: Wed, 15 Jun 2022 15:43:36 +0200 Subject: [PATCH] feat(web): add named extractCss option (#10710) In Rollup rollup-plugin-postcss has option of named extracted css file which can be utilized by just passing a string to extractCss option. This does not affect existing functionality. --- docs/generated/packages/web.json | 4 ++-- packages/web/src/executors/rollup/schema.d.ts | 2 +- packages/web/src/executors/rollup/schema.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/generated/packages/web.json b/docs/generated/packages/web.json index ade917e9b285e..ec80b28f6ac9c 100644 --- a/docs/generated/packages/web.json +++ b/docs/generated/packages/web.json @@ -714,8 +714,8 @@ "default": [] }, "extractCss": { - "type": "boolean", - "description": "CSS files will be extracted to the output folder.", + "type": ["boolean", "string"], + "description": "CSS files will be extracted to the output folder. Alternatively custom filename can be provided (e.g. styles.css)", "default": true }, "assets": { diff --git a/packages/web/src/executors/rollup/schema.d.ts b/packages/web/src/executors/rollup/schema.d.ts index aa2d401d5b5d1..75a58d2f0c7db 100644 --- a/packages/web/src/executors/rollup/schema.d.ts +++ b/packages/web/src/executors/rollup/schema.d.ts @@ -10,7 +10,7 @@ export interface WebRollupOptions { tsConfig: string; project: string; entryFile: string; - extractCss?: boolean; + extractCss?: boolean | string; globals?: Globals[]; external?: string[]; rollupConfig?: string | string[]; diff --git a/packages/web/src/executors/rollup/schema.json b/packages/web/src/executors/rollup/schema.json index 7e4593f40dce1..fd194304bbaab 100644 --- a/packages/web/src/executors/rollup/schema.json +++ b/packages/web/src/executors/rollup/schema.json @@ -97,8 +97,8 @@ "default": [] }, "extractCss": { - "type": "boolean", - "description": "CSS files will be extracted to the output folder.", + "type": ["boolean", "string"], + "description": "CSS files will be extracted to the output folder. Alternatively custom filename can be provided (e.g. styles.css)", "default": true }, "assets": {