Skip to content

feat: combine classes from imported styles #104

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

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

npavlov
Copy link

@npavlov npavlov commented Mar 31, 2021

Improve fetching function, solve issue where one css style imports another style, but doesn't generate classes of imported style.

This PR solves issue described in the issue below:

#87

@npavlov
Copy link
Author

npavlov commented Mar 31, 2021

@trainline please take a look

@Quramy Quramy merged commit 50d7de4 into Quramy:master Apr 1, 2021
@Quramy
Copy link
Owner

Quramy commented Apr 1, 2021

@npavlov Thanks for PR. I've published it as v0.6.6

@npavlov
Copy link
Author

npavlov commented Apr 2, 2021 via email

@@ -68,8 +68,25 @@ export default class FileSystemLoader {
}

const { injectableSource, exportTokens } = await this.core.load(source, rootRelativePath, trace, this.fetch.bind(this));

const re = new RegExp(/@import\s'(\D+?.css)';/, 'gm');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see
#163

(double vs. single quotes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants