Skip to content

Commit

Permalink
feat(web): add named extractCss option (#10710)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
radulle committed Jun 15, 2022
1 parent f7a61dc commit 63ae3ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/generated/packages/web.json
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/executors/rollup/schema.d.ts
Expand Up @@ -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[];
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/executors/rollup/schema.json
Expand Up @@ -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": {
Expand Down

1 comment on commit 63ae3ae

@vercel
Copy link

@vercel vercel bot commented on 63ae3ae Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.