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

Implement PostCSS support #114

Closed
wants to merge 3 commits into from
Closed

Implement PostCSS support #114

wants to merge 3 commits into from

Conversation

K3TH3R
Copy link

@K3TH3R K3TH3R commented Jul 2, 2020

@manniL this is a PR to implement the necessary changes to close #18. I was unable to get the repo's test environment working on my computer, so I can't guarantee the tests are currently passing. However, I made the changes originally to the style-resources-module directly in my node_modules directly for my Nuxt.js project and everything was working properly so I just moved those changes over for this PR.

@@ -92,5 +96,6 @@ const extendWithSassResourcesLoader = matchRegex => resources => (config) => {
const extendSass = extendWithSassResourcesLoader(/sass/)
const extendScss = extendWithSassResourcesLoader(/scss/)
const extendLess = extendWithSassResourcesLoader(/less/)
const extendPostCSS = extendWithSassResourcesLoader(/\?css/)
Copy link
Author

@K3TH3R K3TH3R Jul 2, 2020

Choose a reason for hiding this comment

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

Nuxt uses a loader test that looks like this: /\.p(ost)?css$/i, so I test for the ?css portion to match this loader test, but ignore .css and .scss loaders.

@manniL manniL self-assigned this Jul 3, 2020
@manniL manniL self-requested a review July 3, 2020 08:31
@manniL manniL deleted the branch nuxt-modules:master October 7, 2023 15:06
@manniL manniL closed this Oct 7, 2023
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.

Use with PostCSS?
2 participants