How to import css from 3d party components?


I need to use ngx-datatable in my app , so i strugle on icss import, what the right way to do this?


Did you try importing it in app.scss?


I have found one solution - copy .css files to assets folder and then import them in app.scss. But it doesnt look well.


Just last week I created a tutorial on how to include CSS or JS files from 3rd party libs!

Hope that fixes your problem, by following the guide you can always automatically import those files to your build folder.


Thx Saimon. Not bad solution. It would be great if Ionic has same similar to angular-webpack starter from AngularClass aproach, where is special vendor.ts file where you can add whatever needed in production and those files will be included on build.