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

globalModulePaths option of globalModulePaths don't works #126

Open
MuhammedHasan opened this issue Sep 27, 2018 · 1 comment
Open

globalModulePaths option of globalModulePaths don't works #126

MuhammedHasan opened this issue Sep 27, 2018 · 1 comment

Comments

@MuhammedHasan
Copy link

I have following rollup config:

postcss({
  extract: true,
  modules: {
    globalModulePaths: [/node_modules/]
  },
  plugins: [autoprefixer]
})

Then I import css from my javascript as:

import '@some/external/build/index.css'

But postcss is still modifing class names of css file imported from node_modules.

@MuhammedHasan
Copy link
Author

I solved my problem with using postcss-global-import package. But globalModulePaths behavior is still suspicious.

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

No branches or pull requests

1 participant