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

Use the compilation trigger to determine whether CSS injection should happen instead of emitted asset names. #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

farmerau
Copy link

Per discussion on #78 , I've created this. It might be worth deleting lib/getCssOnlyEmittedAssetsNames.js since I've removed the one call to it's method, but I wasn't sure if that was my place on this adjustment.

I also created an option that defaults to scss/sass/less/css as the regular expression for comparison against the compilation trigger.

@farmerau
Copy link
Author

farmerau commented Feb 9, 2019

It looks like this PR might resolve issues in #69 and #70 as well.

@henrijs
Copy link

henrijs commented Mar 13, 2019

Tested and works. My setup uses mini-css-extract-plugin that extracts css.

@Brendonwbrown
Copy link

I cannot seem to get this working. Can you please share your config?

@farmerau
Copy link
Author

@Brendonwbrown It might be better to see an example of where it isn't working for you.

@farmerau
Copy link
Author

farmerau commented May 9, 2019

@Va1 any thoughts on this? =)

@weilinzung
Copy link

any updates?

@Va1
Copy link
Owner

Va1 commented Apr 8, 2020

can someone verify this works and, if it does, that it does on all webpack major versions available?

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.

None yet

6 participants