Skip to content

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.

2 participants