How to import css from 3d party components?


#1

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


#2

Did you try importing it in app.scss?


#3

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


#4

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.


#5

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.