NathanWalker / nativescript-ngx-fonticon

Use custom font icon collections seamlessly with NativeScript + Angular.
MIT License
76 stars 39 forks source link

`tns create` puts `app` under `src` #50

Closed rynop closed 5 years ago

rynop commented 5 years ago

If you do tns create HelloWorld --template tns-template-blank-ng, install your module, and specify the following:

    TNSFontIconModule.forRoot({
      fa: './assets/fontawesome.css'
    })

Parsing CSS does not work. No error. This is because your prefix is relative to the path where main.ts is. app folder can be moved. Apps created with tns create instead need to load like this:

    TNSFontIconModule.forRoot({
      fa: './app/assets/fontawesome.css'
    })
NathanWalker commented 5 years ago

Thank you @rynop for this clarification 🤗