v2.0.7
Per Oscar, javascript script is adding the class is-loaded
to the body element once it loads, which shows the site with a small animation. Because purgecss does not detect this in the HTML when processing, the CSS code is removed. Lume does NOT read copied files, and we had the js files being copied via site.copy("assets")
in the config. Oscar's fix was to load the js instead of copying:
site.copy("assets/img");
site.loadAssets([".js"]);
Oscar intends to fix this in Lume 3, prioritizing loading over copying files.
What's Changed
- Enable purgecss per Oscar's config recommendation by @RickCogley in #105
Full Changelog: v2.0.6...v2.0.7