As of the beta.14 release of the CLI (which uses Angular 2.0 final), a global stylesheet can be linked inside angular-cli.json
under the "styles" key. This is a reference to a file relative to the src/
directory, which is style.css
by default.
Leveraging this method you could:
- Copy the global styles into
src/styles.css
- Use CSS imports to import external rules into
styles.css
- Add more global styles via the
apps[0].styles
property in angular-cli.json
See also Global Styles in angular-cli
's wiki.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…