Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files loaded by the StylesheetProcessor are not added to the graph #1873

Open
skrtheboss opened this issue Feb 11, 2021 · 0 comments
Open

Files loaded by the StylesheetProcessor are not added to the graph #1873

skrtheboss opened this issue Feb 11, 2021 · 0 comments
Labels

Comments

@skrtheboss
Copy link
Contributor

Type of Issue

[x] Bug Report
[ ] Feature Request

Description

If a style file is loaded by the nodeSassTildeImporter it is not added to the build graph and if that file changes, a new build is not triggered.

How To Reproduce

Folder structure:

├───app
│       app.component.html
│       app.component.scss
│       app.component.ts
│       app.varibales.scss
│       index.ts
│
├───app-header
│       app-header.component.html
│       app-header.component.scss
│       app-header.component.ts
│       app-header.service.ts
│       index.ts
│
├───app-menu
│       app-menu.component.html
│       app-menu.component.scss
│       app-menu.component.ts
│       app-menu.service.ts
│       index.ts

app.variables.scss

$header-height: 60px;
$view-port-menu: 280px;

app-header.component.scss

@import '../app/app.varibales.scss';

.app-header {
    height: $header-height;
}

app-menu.component.scss

@import '../app/app.varibales.scss';

.app-menu {
    width: $view-port-menu;
}

If a change is made to the app.variables.scss file ( which is only used in import statements and not directly in styleUrls of a component ), a new build is not triggered.

Expected Behaviour

If a change is made to a file imported in a style file, then a new build should be triggered.

Version Information

ng-packagr: 11.2.0
@angular/*: 11.2.0
typescript: 4.1.5
rxjs: 6.3.3
node: 14.15.4
npm/yarn: 1.22.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants