Ich habe eckiges Projekt besteht aus Frontend und Admin. Ich möchte mein Projekt so skalieren, dass ich verschiedene CSS für Admin und Frontend verwende.Wie man Modulebene CSS in Angular JS einfügt
Struktur meines Projekts ist wie folgt:
--app
--admin // Admin Module
--admin.module.ts
--admin.component.ts
--admin-routing.module.ts
--admin.component.css
--admin.component.html
--web // Frontend Module
--web.module.ts
--web.component.ts
--web-routing.module.ts
--web.component.css
--web.component.html
--app.module.ts
--app.component.ts
--app-routing.module.ts
--app.component.css
--app.component.html
ich meine CSS für das Web (Frontend) in .angular-cli.json Datei definiert haben.
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"styles.css"
],
Wie kann ich verschiedene CSS-Dateien für Admin und das Web laden? Gibt es auch einen besseren Ansatz, mehrere Module in ein und demselben Projekt zu integrieren?
https://magento.stackexchange.com/questions/127523/how-can-i-load-a-custom-css-file-both-in-adminpanel-and- Frontend – anu