Skip to content

Commit

Permalink
fix(web): in webpack style-loader should be used when extract-css is …
Browse files Browse the repository at this point in the history
…false (#10192)

* fix(web): in webpack style-loader should be used when extract-css is false

* fix(web): remove unnecessary fallback

true value is already being read from schema
  • Loading branch information
radulle committed Jun 15, 2022
1 parent 25b2682 commit f7a61dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/generated/packages/web.json
Expand Up @@ -430,7 +430,7 @@
"extractCss": {
"type": "boolean",
"description": "Extract CSS into a `.css` file.",
"default": false
"default": true
},
"es2015Polyfills": {
"description": "Conditional polyfills loaded in browsers which do not support `ES2015`.",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/executors/webpack/schema.json
Expand Up @@ -165,7 +165,7 @@
"extractCss": {
"type": "boolean",
"description": "Extract CSS into a `.css` file.",
"default": false
"default": true
},
"es2015Polyfills": {
"description": "Conditional polyfills loaded in browsers which do not support `ES2015`.",
Expand Down
2 changes: 2 additions & 0 deletions packages/web/src/executors/webpack/webpack.impl.ts
Expand Up @@ -63,6 +63,8 @@ export interface WebWebpackExecutorOptions extends BuildBuilderOptions {
generateIndexHtml?: boolean;

postcssConfig?: string;

extractCss?: boolean;
}

async function getWebpackConfigs(
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/utils/web.config.ts
Expand Up @@ -72,7 +72,7 @@ export function getWebConfig(
wco.root,
wco.projectRoot,
wco.buildOptions,
true,
options.extractCss,
options.postcssConfig
),
getCommonPartial(wco),
Expand Down

1 comment on commit f7a61dc

@vercel
Copy link

@vercel vercel bot commented on f7a61dc 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-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.