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 the ability to disable critical css for users who wants to keep css separated #48

Merged
merged 6 commits into from
Oct 20, 2019
Merged

Conversation

chainius
Copy link
Contributor

When building the server bundle, the plugin actually disables the CSS extractor and inject every stylesheet directly in the HTML file.

My HTML file did grow up a lot just because of this. I personally use different techniques for a faster CSS load. So sometimes it would be nice to have some flexibility regarding the critical CSS feature.

In this commit, I have added an option called "criticalCss" that can be set in the vue config file in order to disable this feature when we want to keep the CSS extracted in a separated file.

@tkjaergaard
Copy link

+1 We really need this...

@Akryum Akryum merged commit be28007 into Akryum:master Oct 20, 2019
@Akryum
Copy link
Owner

Akryum commented Oct 20, 2019

👍

@sneko
Copy link

sneko commented Jun 28, 2020

Hi @Skyhark-Projects,

Following your work, did you get into troubles in production as described on #186 and #191 ?

Thank you,

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.

5 participants