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

chore: support custom autoModules #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

2heal1
Copy link

@2heal1 2heal1 commented Jun 6, 2022

support custom autoModules like css-loader-auto

@2heal1 2heal1 force-pushed the chore/support-custrom-auto-modules branch from ed509d8 to b0bf485 Compare June 6, 2022 10:09
@2heal1
Copy link
Author

2heal1 commented Jun 6, 2022

the CircleCi use node v16 which cause the CI failed

@filecage
Copy link

Just stumbled upon this because my project only knows CSS modules, thus the file tag can be omitted (which rollup-plugin-postcss per default does not allow). However, it can be achieved by disabling autoModules and setting modules to true:

{
    // Disable `autoModules` and always enable `modules` (so that all input files are treated as modules)
    autoModules: false,
    modules: true
})

Just leaving this bit of information here in case anybody is looking for the same functionality.

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.

None yet

2 participants