Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

composes from external .css file doesnt work #358

Open
lrembacz opened this issue May 31, 2020 · 2 comments
Open

composes from external .css file doesnt work #358

lrembacz opened this issue May 31, 2020 · 2 comments
Milestone

Comments

@lrembacz
Copy link

What problem does this feature solve?

<style module> composes test from './main.css'; </style>

should work and be exported.

error is thrown referenced class name "test" in composes not found. Probably associated with postcss-modules-scope.

What does the proposed API look like?

Composing class in <style> tag is working. Is there any way to fix this?

@przemkow
Copy link
Contributor

przemkow commented Jun 2, 2020

I checked this problem to get more details and is seems to be caused by external dependency postcss-modules-sync used in rollup-plugin-vue

Here is the small repo where you can reproduce this issue:
https://github.com/przemkow/postcss-modules-sync_compose-from-file

postcss-modules plugin interprets that correctly but it does not supports yet sync build.

PS. On next branch (version for Vue 3) this behaviour works as expected.

@lrembacz
Copy link
Author

lrembacz commented Jun 3, 2020

Okey, I actually made workaround even before your message with two additional plugins:

@znck znck added this to the Zero Issues milestone Oct 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants