These are chat archives for AngularClass/angular2-webpack-starter

15th
Feb 2017
Muhammad Ali Makhdoom
@14Muhammad
Feb 15 2017 09:45
http://prntscr.com/e8z02u
webpack startup is having error
please check
Muhammad Ali Makhdoom
@14Muhammad
Feb 15 2017 11:51

Hello,
can you help me with webpack 2 angular 2 ?
I purchased this dashboard..
https://wrapbootstrap.com/theme/sing-app-web-angular-2.0-dashboard-WB0J6BJ85

I want to add DevExtremeModule in it
but I am having issuewith loading fonts inside the css
let me know if you can help

I'm loading DevExteme css files in application.scss
like this

@import '~devextreme/dist/css/dx.common';
@import '~devextreme/dist/css/dx.spa';
@import '~devextreme/dist/css/dx.light.compact';

its loading and getting css

but inside that dx.light.compact.css file , devExtreme loading its own fonts
but webpack not consider those and I have console error
http://localhost:3000/icons/dxicons.ttf
404 (Not Found)
did you get the issue ?
somehow I want to make url relative which is inside the css file..

@font-face {
font-family: 'DXIcons';
src: url(icons/dxicons.woff) format('woff'), url(icons/dxicons.ttf) format('truetype');
font-weight: normal;
font-style: normal;
}

A little light will be appreciated ..

Mark Oliver
@invegat
Feb 15 2017 18:18
Do you have dxicons.ttf where you are specifing it exists in "icons"?