Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An option to disable compressed files list comment on production #37

Open
javialeon opened this issue Feb 5, 2013 · 1 comment
Open

Comments

@javialeon
Copy link

Hi dirk how are you?

More than an issue, this is a kind of improvement. Would be helpful to have an option in the module that let us disable the list comment that shows up above the final compressed js or css file (in the rendered html file) on production mode. Could this be possible?

Thanks in advance.

javialeon

@dirkmc
Copy link
Owner

dirkmc commented Feb 5, 2013

Hi javialeon,
Those comments are actually required. Press scans through the html file after it has been generated and looks at those comments to determine the order in which the js/css files should be added to the aggregate file.
The reason is that the view renderer doesn't necessarily execute templates in order down the page, so the only way for press to know the final order is to scan through the html file after the whole thing has been rendered.
Dirk

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

No branches or pull requests

2 participants