Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

RE: Icon doesn't show up when using nativescript-dev-webpack #44

Open
samliaw opened this issue Jul 19, 2018 · 2 comments
Open

RE: Icon doesn't show up when using nativescript-dev-webpack #44

samliaw opened this issue Jul 19, 2018 · 2 comments

Comments

@samliaw
Copy link

samliaw commented Jul 19, 2018

Test With nativescript-dev-webpack.zip

Attached is a project excluding node_modules, platforms and hooks.

When I compile this project using this command "tns run android --emulator", I am able to see the icon. However, when i built it with nativescript-dev-webpack using this command "tns run android --bundle", I am not able to see the icon at all.

I try it with my existing project and it behaves the same.

There is no error on the screen.

@NickIliev
Copy link

@samliaw the solution can be found here

@rynop
Copy link
Contributor

rynop commented May 13, 2019

I just put fontawesome.css in src/fonts dir then do:

    imports: [
        NativeScriptCommonModule,
        TNSFontIconModule.forRoot({
            fa: './fonts/fontawesome.css'
        })
    ],

This way I don't have to tinker with webpack.config.js (which gets auto-generated and updated frequently)

@NickIliev you are much more seasoned with NS - you see any downside to this approach?

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