You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure, this is the first time I have this situation.
Description
When using a 'complex' style configuration in angular.json in combination with a .css file coming from a linked NPM package the .css file is not bundled. When installing the NPM as a regular NPM package or when configuring a direct path to the .css the .css is bundled.
So in a nutshell, it seems that the 'complex' style configuration does not support NPM links.
🔬 Minimal Reproduction
create an npm package in a directory /some-package. Add a .css file in /some-package/dist/some-package.css and a package.json. Name the package @company/some-package.
create an Angular application in /application.
add a link to 'some-package' int the dependencies section of the package.json of the application: "@company/some-package": "file:../some-package".
Run npm install in /application.
add a complex style configuration to angular.json that refers the css in the package:
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Not sure, this is the first time I have this situation.Description
When using a 'complex' style configuration in angular.json in combination with a .css file coming from a linked NPM package the .css file is not bundled. When installing the NPM as a regular NPM package or when configuring a direct path to the .css the .css is bundled.
So in a nutshell, it seems that the 'complex' style configuration does not support NPM links.
🔬 Minimal Reproduction
"@company/some-package": "file:../some-package"
.npm install
in /application.When running ng build or ng serve the css is not bundled and as such the styles are not applied.
When I refer the css directly it works:
A Github repository that reproduces the problem can be found on https://github.com/DavidUrting/angular-style-configuration-npm-link-issue.
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: