Skip to content

[Updated] Small syntax update for including style-loader#9100

Closed
rfreling wants to merge 1 commit into
react:masterfrom
rfreling:patch-2
Closed

[Updated] Small syntax update for including style-loader#9100
rfreling wants to merge 1 commit into
react:masterfrom
rfreling:patch-2

Conversation

@rfreling

@rfreling rfreling commented Jun 2, 2020

Copy link
Copy Markdown

Cleaned up PR (original reference #9076)


This simple syntax change will allow for other CRA extension utilities (like customize-cra) to add options the 'style-loader'. Specifically the "insert" prop (fka "insertInto") can be quite useful.

E.g. https://github.com/arackaf/customize-cra/blob/master/api.md#adjuststyleloaderscallback

It's possible that preventing overrides to the 'style-loader' configuration was intentional as a way to prevent downstream webpack/hot-update bugs, but I haven't run into any when running this update in an ejected create-react-app. So would appreciate any veteran thoughts on whether this is safe to update.

@stale

stale Bot commented Jul 3, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale Bot added the stale label Jul 3, 2020
@stale

stale Bot commented Jul 11, 2020

Copy link
Copy Markdown

This pull request has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants