Skip to content
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

Support usage from source in downstream #536

Open
adamkudrna opened this issue Apr 15, 2024 · 0 comments
Open

Support usage from source in downstream #536

adamkudrna opened this issue Apr 15, 2024 · 0 comments
Assignees
Labels

Comments

@adamkudrna
Copy link
Member

As of now, we only support the quick-usage scenario via ready-to-use CSS and JS bundles.

Expert Mode

Aside from that, we also want to support the "expert" scenario for those who want to have more control over what is bundled into their app. This means:

  • loading common Sass source files directly (everything except components),
  • loading JS components as modules that take their Sass styles with them.

👉 Add the "module" directive to our package.json to make the ESM way easier: https://antfu.me/posts/publish-esm-and-cjs

Caveats

⚠️ Beware of Sass imports we currently have in our src/index.js:

import './theme.scss';
import './foundation.scss';
import './helpers.scss';

⚠️ Do not break current CSS and JS bundles.

@adamkudrna adamkudrna self-assigned this Apr 15, 2024
@adamkudrna adamkudrna converted this from a draft issue Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant