Search code examples
angular-dart

Style tags into index.html file


The build generate <style> tags into index.html file. Is there any way to change that? Generate all css in a separate file for example.


Solution

  • No, that's how Angular works. The styles are updated at runtime for style encapsulation purposes and are generated by code. Having them in a CSS file wouldn't work.

    If you don't use component styles but a reference to a CSS file in index.html then this will taken as is for the generated app.