NativeScript / NativeScript/nativescript-cli
App not displaying correctly after enabling webpack
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with NativeScript CLI 5.4.2 after enabling webpack and installing uglifyjs-webpack-plugin, then inspect the build output for why CSS and fonts are missing on iOS and Android. Done means the app builds with its styles and fonts applied, with the plugin requirement and webpack setup clarified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system, cli, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100