Angular 6 load css folders in angular.json

后端 未结 1 848
一个人的身影
一个人的身影 2021-02-14 08:23

I am trying to convert my html template into angular app. I have a css folder called plugins and img folder.

When I am adding :

 \"styles\": [
                   


        
相关标签:
1条回答
  • 2021-02-14 08:46

    In angular 6 you have to add only in src/style.css (instead angular.json):

    @import "assets/plugins/listtyicons/style.css";
    @import "assets/plugins/jquery-ui/jquery-ui.min.css";
    @import "assets/plugins/bootstrap/css/bootstrap.min.css";
    @import  "assets/plugins/plugins/isotope/isotope.min.css";
    

    And in angular.json

    "styles": [
              "src/styles.css"
            ]
    
    0 讨论(0)
提交回复
热议问题