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

prettified html output #107

Closed
sillyslux opened this issue May 26, 2017 · 4 comments
Closed

prettified html output #107

sillyslux opened this issue May 26, 2017 · 4 comments

Comments

@sillyslux
Copy link

coming from "opinionated" gatsby.js i want prettified html output (b/c git diffs)
so currently i use a modified static-site-generator-webpack-plugin from v2.1.1

var prettifier = require('js-beautify').html;
compiler.assets[outputFileName] = createAssetFromContents(prettifier(output));

see https://github.com/markdalgleish/static-site-generator-webpack-plugin/blob/v2.1.1/index.js#L63
but since i don't know how and when gatsby will update this dependency, i don't even know if it makes sense at all...

@eloytoro
Copy link

eloytoro commented Aug 3, 2017

you shouldn't be versioning the output files in my opinion

@sillyslux
Copy link
Author

@eloytoro well then go and tell github to disable versioning on gh-pages branches if you really think so.
right now, i couldn't avoid it even if you had convinced me with your well-founded opinion.
no matter what you think of it, it's nice for me to see when a small modification also resulted in a small diff.
but above all: there's nothing wrong with versioning anything. ever.

@eloytoro
Copy link

eloytoro commented Aug 7, 2017 via email

@jahredhope
Copy link
Collaborator

It seems like the issue of formatting the render output is solved by the consumer being able to output formatted HTML from their render function.
Closing the issue for now. Please re-open if this is not solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants