F7Wrapper Bundler streamlines the bundling process for apps built with the F7Wrapper plugin. It packages your app’s HTML, CSS, and JavaScript assets into a single, optimized JavaScript file—perfect for seamless integration with the DroidScript APK Builder, which benefits from simplified obfuscation and packaging.
The bundler uses a dedicated DroidScript service alongside Node.js to handle intensive bundling and optimization tasks efficiently.
- Node.js & DroidScript Service: Leverages both for fast and efficient bundling.
- All-in-One Bundling: Combines HTML, CSS, and JavaScript into a single JavaScript output file.
- Minification: Reduces file size by minifying JavaScript, CSS, and HTML.
- Framework7 Ready: Ensures
Dom7is initialized before executing scripts. - Ignore Rules: Supports
.bundleignoreto exclude files and directories from the bundle.
The .bundleignore file functions similarly to .gitignore, allowing you to exclude specific files or folders from being bundled. Excluded items are still copied to the output directory untouched.
- Create a
.bundleignorefile in your app’s root directory. - Add file or folder patterns you wish to exclude:
# Example .bundleignore secret.js assets/*
- Run the bundler—excluded items will be skipped during the process.
- Premium Access: A premium DroidScript subscription is required to use this tool.
- Node Initialization Errors: Restart DroidScript or update to the latest version if you encounter issues initializing Node.js.
- Crash on Start: If you get the message "Unfortunately, DroidScript has stopped", update Droidscript and ensure your device has enough memory.
- Commented Code: Bundler does not ignore commented-out lines like
f7.style,f7.script,f7.addPage, orf7.addPanel. Remove unused code manually to avoid issues. - Debugging Tips: If the bundler fails, check your console logs for detailed error messages.
Have a fix or suggestion? Submit a pull request or report issues on Github.
This project is released under the MIT License.
- Built for F7Wrapper plugin.
- Special thanks to the DroidScript team for their continued development of the platform.