Skip to content

Conversation

@dzhygun
Copy link

@dzhygun dzhygun commented Sep 14, 2025

Hi, Publii team!

While working with Simple theme, I noticed, that assets have 2 scripts.js files: one human readable and one minified.
The rendering process of Publii does not minify the .js files, instead, the Simple theme reference minified file directly from partials.

IMO, that is suboptimal and confusing.
Minification should be done inside rendering process.
So, I have made this PR.

Please, note, the PR contains also formatting changes, that affect irrelevant code.

UPD. Tested, works like a charm.

…al files are replaced with minified version in output/preview, because the original file name is referenced from .html files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant