Angular 6 Library using bootstrap

后端 未结 6 2114
遇见更好的自我
遇见更好的自我 2021-02-19 13:14

I am creating an angular library in an angular project using angular 6 library feature https://github.com/angular/angular-cli/wiki/stories-create-library

I am creating f

6条回答
  •  执笔经年
    2021-02-19 13:39

    If you are using ng-packagr, you can use the below process that I followed.

    I added the styles in styleIncludedPaths of ng-package.json as shown below.

    "lib": {
        "entryFile": "src/public_api.ts",
        "cssUrl": "inline",
        "styleIncludePaths": [
          "src/assets/styles",
          "../../node_modules/bourbon/app/assets/stylesheets",
          "../../node_modules/bourbon-neat/app/assets/stylesheets",
          "../../node_modules/bootstrap/dist/css"
        ]
      }
    

提交回复
热议问题