Skip to content

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