-
Notifications
You must be signed in to change notification settings - Fork 13
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
nano-css #164
Comments
I would love to! I just saw this library yesterday, but I could get to it tonight probably!
Otherwise PRs very welcome!
…On Mar 19, 2018, 5:06 AM -0500, Va Da ***@***.***>, wrote:
What are your thoughts on adding nano-css? I could possibly submit a PR.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@streamich I attempted to add this dependency, but I'm running into some issues with some addons, specifically I receive the following error in my console:
neither of those files exist in the |
It should be something like this: import {create} from 'nano-css';
import {addon as addonKeyframes} from 'nano-css/addon/keyframes';
const nano = create();
addonKeyframes(nano); |
Hmm... you're right! I just copied the code from https://github.com/streamich/nano-css/blob/HEAD/docs/Installation.md, so it must be something with my setup. Will investigate! Here's a CodeSandbox demonstrating that the issue does not occur. |
Any luck? |
Hi! Sort of... So nano-css does things a bit differently than most other libraries, and seems to be basically require a helper file (that adds all the addons to the nano instance). Unfortunately, how CSS in JS Playground works is that it basically mimics local imports, and doesn't have full support for import/export so it's a bug fix I'll have to make to support it. Shouldn't take me too much longer. |
You could use my in-memory file system to hold files |
Would that work in the browser.. ? |
Yes it will 🙃 So basically I've done something semi-similar, I use URL encoded params to hold the data and replace |
Well then just keep it your way. But if you will use an in-memory file system, you will need to write your own But that's I guess too complex fo this project. |
What are your thoughts on adding
nano-css
? I could possibly submit a PR.The text was updated successfully, but these errors were encountered: