Skip to content
This repository was archived by the owner on Mar 14, 2020. It is now read-only.

add style field#34

Open
turtleDev wants to merge 1 commit into
juliancwirko:masterfrom
turtleDev:master
Open

add style field#34
turtleDev wants to merge 1 commit into
juliancwirko:masterfrom
turtleDev:master

Conversation

@turtleDev

Copy link
Copy Markdown

Adding a style field to your npm package makes it compatible with sass-module-importer, which is a nice way to import css into your sass project directly from node_modules without relying on the ugly ../../ imports.

I would also recommend compiling a react-s-full.css file (that includes everything needed to use react-s-alert, including animations), and then set that as the style for your module.

The CSS files are not so big to warrant them being in their separate files, or at least for me, it was counter-intuitive. Either way, I don't think adding a full build could hurt :)

add style field
@juliancwirko

Copy link
Copy Markdown
Owner

Hi, thanks. I couldn't find time to get back to this tool lately. I hope I'll be able to review this one and others asap :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants