2017-12-08 11 views
1

私はAngular 4、Bootstrap、font-awesomesを使ったEコマースプロジェクトに取り組んでいます。また、.scssファイルとangular-cliを使用しています。私自身で。 すべてのライブラリ、イメージ、およびすべてのファイルをオフラインでインストールしました。角度4プロジェクトがオフラインで動作しない

私はプロジェクトの仕事をオフラインにしていますが、スタイルがなく、スライダが動作しない場合、そして私がオンラインであれば動作します。

オンライン=>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

[This](https://coryrylan.com/blog/fast-offline-angular-apps-with-service-workers)をご覧ください投稿 – jitender

+0

自分のサーバーにフォントをホストしよう – Paul

+0

@Paul how iこれはできますか? –

答えて

0

すべてあなたのプロジェクトのすべてのものをオフラインにします すべてのlibriresフォントをインストールしてください。それは正常に動作します。

関連する問題