Skip to content

Depend on normalize.css properly #652

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

Merged
merged 1 commit into from
Feb 11, 2019
Merged

Depend on normalize.css properly #652

merged 1 commit into from
Feb 11, 2019

Conversation

adamwathan
Copy link
Member

Previously we had essentially copy-and-pasted normalize into our own preflight.css file and were maintaining it by hand, all because I didn't have the time to figure out how to do it properly in the haste of getting 0.1.0 out the door a couple YEARS ago 😅

Turns out require.resolve(packageName) is the secret sauce I was looking for, and lets me get the path to the installed normalize.css file so I can parse it and load it as a base style.

@adamwathan adamwathan merged commit acee883 into next Feb 11, 2019
@adamwathan adamwathan deleted the normalize-npm branch May 13, 2019 14:00
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.

1 participant