A project to create a single minified html file of a Cocos Creator web-mobile project.
- Create the build through the Cocos Creator editor.
- Copy this project into the root folder of your cocos creator project.
cd cocos-html-inliner/
npm install
(node v8.10.0)pip install -r requirements.txt
(python 3.6.2)python inline_html.py
- Output files can be found inside 'cocos-html-inliner/build' folder.
- The html file is minified. All scripts and css are inlined and minified.
- The splashscreen is removed.
- Supports CocosCreator 1.9.3, 2.1 and 2.2
- To restore the splashcreen as well as the 'auto enable full screen' feature, uncomment the desired lines of code from index.html and main.js inside templates folder.
- There is a publishers list and their behaviour inside inline_html.py. It's just a text replace for your cocos creator code. Use it wisely!