App not displaying correctly after enabling webpack

オープン
#4,750 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, webpack

調査の方向性

webpack を有効にして uglifyjs-webpack-plugin をインストールした後、NativeScript CLI 5.4.2 で問題を再現し、iOS と Android で CSS とフォントが不足する理由を確認するためにビルド出力を調査します。アプリがスタイルとフォントを適用した状態でビルドされ、プラグインの要件と webpack の設定が明確になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

question

Hi there,

Context: I was using NS CLI 5.2.4 (or 5.2.3 I think) up until last night and my app was running fine. At some point the iOS version started crashing after I installed two plugins. Removing those plugins never resolved the issue.

I decided to update my project to CLI 5.4.2 which uses Webpack, seeing as NS 6 will require it anyway. I updated my app and installed uglifyjs-webpack-plugin as a devDependency after the console moaning about it and failing my builds.

Since then, my app builds fine on both iOS and Android, but the CSS is not applied so it all looks terrible. No fonts are applied, no CSS styles, nothing.

Is there anything I missed when installing the uglify plugin? Will there be a need for this plugin from NS6 onwards?

How do I code and set up my project for webpack/bundle if I've never used it before?

Thanks
Nick

主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NativeScript/nativescript-cli のほかの issue

NativeScript/nativescript-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。