Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import folders of SVG assets #2521

Closed
splacentino opened this issue Oct 5, 2016 · 3 comments
Closed

Import folders of SVG assets #2521

splacentino opened this issue Oct 5, 2016 · 3 comments

Comments

@splacentino
Copy link

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]
})
@Meligy
Copy link
Contributor

Meligy commented Oct 5, 2016

Unfortunately this is pretty much a duplicate of #1942, which seems to be a while before getting a resolution.

@filipesilva
Copy link
Contributor

#1942 was solved via #2570, but that PR wouldn't allow for the functionality you need. Since node_modules isn't copied over to dist/, you'll need to have those assets inside your project (in src/assets/ for instance).

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants