Question
I'm manually building my project using webpack, which produces a single output file. When I try to debug/run/build the project with an index.html that references this output file, Tizen Studio hangs during the building phase.
There shouldn't be any actual building required - it should just package the files into a .wgt file. I've tried disabling all JavaScript validations and checkers, but this didn't resolve the issue.
Answer
Problem Understanding
The issue occurs when Tizen Studio attempts to validate large JavaScript files generated by webpack during the packaging process. The validation step can cause the IDE to hang, especially with large bundled files.
Solution Methods
-
Disable JavaScript Validation:
- Go to Tizen Studio → Preferences
- Navigate to Tizen Studio → Web → Editor → JavaScript Editor
- Disable all JavaScript validation options
-
Exclude Specific Files from Validation:
- In the same JavaScript Editor preferences:
- Expand JSHint Properties
- Add your bundled JavaScript filename to "Exclude files that match these patterns from JSHint"
- This prevents validation of your large bundled file during build
- In the same JavaScript Editor preferences:
-
Alternative Packaging Approach:
- Consider using the Tizen CLI tools instead of Tizen Studio for packaging
- This bypasses the IDE's validation steps entirely
Additional Tips
- If using webpack, consider splitting your bundle into smaller chunks
- Ensure your webpack configuration outputs files in a format compatible with Tizen packaging
- For large projects, the CLI approach may be more reliable than using Tizen Studio