Skip to content

Add proper module api for node users#619

Merged
redonkulus merged 1 commit intomasterfrom
module
Dec 20, 2016
Merged

Add proper module api for node users#619
redonkulus merged 1 commit intomasterfrom
module

Conversation

@redonkulus
Copy link
Contributor

@redonkulus redonkulus commented Dec 20, 2016

@bugeats @ericf

Fixes #565

This add a simple API to get the path to a css file and also its contents.

One caveat here is that I changed main from exporting the build/pure-min.css to exporting index.js. Its technically a breaking change, but the previous behavior would fail because node cannot require a css file. I added the browser property back to the original file in case someone is bundling this package for the client.

@yahoocla
Copy link

CLA is valid!

@bugeats
Copy link

bugeats commented Dec 20, 2016

Looks great, thanks! Tests even! 👍

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.

3 participants