π Reads the Source HTML: Looks for your CSS and JavaScript in src/index.html.
π¨ Extracts & Processes CSS: Removes unused CSS, adds prefixes, and minifies.
β‘ Processes JavaScript: Bundles and minifies your JS code. Removes dead code.
ποΈ Updates the HTML: Inserts references to minified files.
π§Ό Minifies the HTML: Compresses the HTML for faster loading.
π¦ Final Output: All files are ready for production!
β οΈ Note: All HTML, CSS, and JS must be inline in src/index.html
for optimise.js to process them.
(Optional) Attach functions to the window
object in JS code to prevent them from being mistakenly removed by tree shaking process.
π οΈ Easy editing: Edit src/index.html
in a human-readable format.
Automatic deployment: Your code is optimised, minified, and deployed automatically on every push using deploy.yml
Scan Results Optimise.js
β
π Automatic dependency updates: Dependabot keeps your site secure and up-to-dateβjust merge its PRs!
π Logs Enabled: If you run into build errors or want to understand whatβs happening behind the scenes, you can always check the build-report.logs
ποΈ Upcoming changes:Img Optimise: Ability to auto minify images in assets
folder.Lite Mode: Make optimise.js
process files without Tree-shaking or PurgeCSS. (Added on 28-May-2025) with separate pro mode