landingpageutil
Version:
Alters Landing Page zip to public folder for viewability
18 lines (12 loc) • 468 B
Markdown
## Landing Page Util
### Archive Extration
- Reads the archive and extracts it to a folder
- updates the dependencies with new base to public folder
- returns the updated html string
### Offer Url Updation
- updates offer url in each of the anchor having certain class
### File Extraction strategy
- Move archive to temp
- move js files to js/<randomstr>/fileName.js
- similarly for css file
- images and other assets are moved to assets/<randomstr>/fileName.ext