NativeScript / NativeScript/nativescript-cli
App not displaying correctly after enabling webpack
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
webpack を有効にして uglifyjs-webpack-plugin をインストールした後、NativeScript CLI 5.4.2 で問題を再現し、iOS と Android で CSS とフォントが不足する理由を確認するためにビルド出力を調査します。アプリがスタイルとフォントを適用した状態でビルドされ、プラグインの要件と webpack の設定が明確になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, webpack
- 領域
- build-system, cli, mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100