Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updocs(@angular/cli): fix schema.json description for `stylePreprocessorOptions.includePaths` #17156
Conversation
…ons` > `includePaths`
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
|
@googlebot I signed it! |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
@googlebot I signed it! |
CLAs look good, thanks! |
Previously, the
schema.json
description forstylePreprocessorOptions
>includePaths
specified that paths were resolved with respect to "project root", but this should read "workspace root".Starting at styles.ts#L81,
each user-specified include path is resolved with respect to
root
, declared at styles.ts#L27where
wco
is passed in from the containing function,getStylesConfig
, called at index.ts#L138inside the
webpackPartialGenerator
callback, which was passed togenerateBrowserWebpackConfigFromContext
at index.ts#L154which in turn passed the callback to
generateWebpackConfig
, which calls the callback at webpack-browser-config.ts#L104with the
wco
object declared at webpack-browser-config.ts#L91, which has itsroot
field set toworkspaceRoot
which was passed in from
generateBrowserWebpackConfigFromContext
at webpack-browser-config.ts#L222 aswhere
workspaceRoot
was declared at webpack-browser-config.ts#L204 asusing the
context
received from the caller,buildBrowserWebpackConfigFromContext
, whose own caller,setup
, passed in thecontext
it received fromsetupWebpackBrowser
which declares the type ofcontext
to beBuilderContext
, whose definition includes a comment for theworkspaceRoot
field at api.ts#L146,motivating this PR.
It would probably also be helpful to also mention the include path resolution strategy in the relevant section of the docs.