I have below file structure:
/src/
app/
components/
block/
block.html
block.scss
block.ts
sub-block.ts
The sub-block is a component which inherits block component and share the same html file and scss file:
@Component({
selector: 'sub-block',
templateUrl: 'block.html',
styleUrls: ['./block.scss'],
})
export class SubBlockComponent extends BlockComponent{...}
When I run app, it reports error:
GET http://localhost:8100/block.scss 404 (Not Found)
I tried
- styleUrls: ['block.scss']
- styleUrls: ['./block.scss']
- styleUrls: ['/src/components/block/bock.scss']
- styleUrls: ['src/components/block/bock.scss']
- styleUrls: ['../components/block/bock.scss']
All failed.
How can I get it work? Is that revelant to tsconfig or webpack?