Skip to content

Import folders of SVG assets #2521

Closed
Closed
@splacentino

Description

@splacentino

Hello.

I am using the ng-lightning module on my project. To work well, I had to import the vendor css from the package in the main styles.css file with "@import".

@import "../node_modules/myPackage/assets/styles/style.min.css"

But to work better, I need assets/icons folders from the package. How to include them ?

node_modules/myPackage/assets/icons // subfolders of svg files

ng-lightning use a path to svg folder at the import. I can't give a node_modules/* path

import { NglModule } from 'ng-lightning/ng-lightning';

@NgModule({
  imports: [
    NglModule.forRoot({ svgPath: 'path_to_include_svg_folder' })
  ]
  bootstrap: [AppComponent]
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions