Skip to content

Support usage from source in downstream #536

Open
@adamkudrna

Description

@adamkudrna

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions