egoist / rollup-plugin-postcss

Seamless integration between Rollup and PostCSS.
MIT License
677 stars 217 forks source link

globalModulePaths option of globalModulePaths don't works #126

Open MuhammedHasan opened 6 years ago

MuhammedHasan commented 6 years ago

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 commented 6 years ago

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