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

Optimize default theme CSS on build time #106

Merged
merged 2 commits into from
Sep 12, 2019
Merged

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Sep 12, 2019

Apply optimization for default theme CSS on build time.

Marp core's default theme is based on GitHub style so we have bundled declarations not only for section tag (Marpit slide container) but also .markdown-body class. Commonly they are useless in Marp and just would output huge CSS.

Therefore I created postcss plugin for rollup bundle to remove selectors started with .markdown-body.

@yhatt yhatt merged commit ad01abd into master Sep 12, 2019
@yhatt yhatt deleted the optimized-default-theme branch September 12, 2019 01:49
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