2017-12-08 5 views
1

Angular 4, Bootstrap, font-awesomes를 사용하는 전자 상거래 프로젝트에서 작업 중이며 .scss 파일 및 angular-cli를 사용하고 있으며 슬라이더를 작성했습니다. 혼자서. 모든 라이브러리, 이미지 및 모든 파일을 오프라인으로 설치했습니다.Angular 4 Project가 오프라인으로 작동하지 않습니다.

내가 프로젝트 작업을 오프라인으로하면 문제가 발생하지만 슬라이더가 작동하지 않고 슬라이더가 작동하지 않는 것처럼 문제가 발생합니다. 온라인 상태라면 작동합니다.

온라인 =>The slider is work and there is no problem

오프라인 =>Slideer is not working 그것은 나에게, 내가 프로젝트 오프라인 작업을 실행할 수 있도록

Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSq-j2U0lmluP9RWlSytm3ho.woff2 
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSpX5f-9o1vgP2EXwfjgl7AY.woff2 
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNShWV49_lSm1NYrwo-zkhivY.woff2 
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSqaRobkAwv3vxw3jMhVENGA.woff2 
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSv8zf_FOSsgRmwsS7Aa9k2w.woff2 
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSj0LW-43aMEzIO6XUTLjad8.woff2 
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSugdm0LZdjqr5-oayXSOefg.woff2 
localhost/:1 Slow network is detected. Fallback font will be used while loading: http://localhost:4200/glyphicons-halflings-regular.448c34a56d699c29117a.woff2 
localhost/:1 Slow network is detected. Fallback font will be used while loading: http://localhost:4200/fontawesome-webfont.fee66e712a8a08eef580.woff 
localhost/:1 Slow network is detected. Fallback font will be used while loading: http://localhost:4200/fontawesome-webfont.b06871f281fee6b241d6.ttf 
core.es5.js:2925 Angular is running in the development mode. Call enableProdMode() to enable the production mode. 

내가 솔루션이 필요 콘솔에서 이러한 메시지를 준 잘 온라인처럼

+0

[이] (https://coryrylan.com/blog/fast-offline-angular-apps-with-service-workers)를 보시오. – jitender

+0

자신의 서버에서 글꼴을 호스팅 해보십시오. – Paul

+0

@Paul how i 이럴 수있어? –

답변

0

모두 당신의 프로젝트에서 모든 것을 오프라인으로 만들 수 있습니다. 모든 librires 글꼴을 설치하고. 제대로 작동합니다.

관련 문제