Skip to content

Add the ability to disable critical css for users who wants to keep css separated#48

Merged
Akryum merged 6 commits into
Akryum:masterfrom
chainius:master
Oct 20, 2019
Merged

Add the ability to disable critical css for users who wants to keep css separated#48
Akryum merged 6 commits into
Akryum:masterfrom
chainius:master

Conversation

@chainius

Copy link
Copy Markdown
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
Copy Markdown

+1 We really need this...

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

Akryum commented Oct 20, 2019

Copy link
Copy Markdown
Owner

👍

@sneko

sneko commented Jun 28, 2020

Copy link
Copy Markdown

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