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.


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.

Answered By – Günter Zöchbauer

Answer Checked By – David Marino (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *