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

Add minifyCSS option #103

Merged
merged 5 commits into from
Sep 11, 2019
Merged

Add minifyCSS option #103

merged 5 commits into from
Sep 11, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Sep 11, 2019

Add minifyCSS option to control minimization of rendered CSS.

We have received feedback that debugging CSS theme that is based on official theme is difficult because our themes are minified. So we provide optimized official themes that has leaved whitespaces and breaks, and apply whitespace minifier on runtime.

minifyCSS is true by default. If it's false whitespaces will remain in css rendered by render().

If minifyCSS is true (or undefined), Marp Core will minify not only passed theme but also styles for additional features and Marpit scaffolds. Therefore the final rendered CSS will be smaller than ever.

ToDo

  • Update README.md

@yhatt yhatt merged commit 9e6aaf9 into master Sep 11, 2019
@yhatt yhatt deleted the minify-css branch September 11, 2019 10:06
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