D
D
Denis Z2019-02-21 13:26:50
Angular
Denis Z, 2019-02-21 13:26:50

How to correctly formulate a command for angular-cli?

Question for angular-cli geniuses
The structure of all components looks like this.

@Component({
  selector: 'topbar',
  templateUrl: 'topbar.component.html',
  styleUrls: ['topbar.component.scss']
})

How to correctly formulate a command for .angular-cli
so that when building it, it collects all scss style files into one bundle.css or bundle.js.
At the moment, everything is going to one main bundle.js and only style.scss in bundle.css since it is a global file.
such an option as manually compiling all styles into one with the help @importis not suitable, thus the "encapsulation" is not saved.
I hope I explained the problem clearly
, any information will be useful, thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question