ng2CoreContacts
ng2CoreContacts copied to clipboard
HELP WANTED: How to incoorporate third-party .css files into this setup.
@mithunvp I am currently struggling to do that. Can you please help me out?
I got working refences to third-party .js files by importing them inside the vendor.browser.ts file. I also got jQuery working by referencing it like this in my webpack.common.js-file:
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
}),
But I do not manage to get working references to .css files.
I got it working like @jestersimpps suggested here https://github.com/DevExpress/devextreme-angular2/issues/110
I know now that everything that is defined in the style.css file doesn't get applied to the document. I will try to fix this, maybe that is an unrelated Problem. Or just a webpack config. I will look into ViewEncapsulation, maybe this is also related.
EDIT:
I had to include the following inside my index.html: <link rel="stylesheet" href="styles.css">
I am sure that there is a way to configure webpack to do this. But I am more than okay with this simple solution.