vuejs / component-compiler-utils

Lower level utilities for compiling Vue single file components
319 stars 75 forks source link

Does styleCompiler respect postcss config file? #53

Closed multics closed 5 years ago

multics commented 5 years ago

I am using rollup-plugin-vue, and found it has its own postcss configuration item, and my postcss.config.js is not being read. After some investigation, I figured it out that styleCompiler this package requires it.

Is this intended? Or is it a better idea if compiler only extract css, and leave postcss processes to be handled by tools like postcss?

multics commented 5 years ago

I figure out that I could use rollup-plugin-postcss, DO NOT use rollup-plugin-css-only and leave style option of rollup-plugin-vue empty.

Everything works fine now.