rollup-plugin-postcss icon indicating copy to clipboard operation
rollup-plugin-postcss copied to clipboard

Hot Module Replacement (HMR)

Open nstepien opened this issue 4 years ago • 0 comments

Would it be possible to add support for HMR?

For example

postcss({
  hot: process.env.ROLLUP_WATCH === 'true', // new!
  extract: true,
  minimize: process.env.NODE_ENV === 'production'
})

rollup-plugin-hot-css (https://github.com/PepsRyuu/rollup-plugin-hot-css) does support it, but it's not as complete as rollup-plugin-postcss feature-wise. Maybe rollup-plugin-hot-css should be merged into rollup-plugin-postcss? @PepsRyuu WDYT?

nstepien avatar Aug 23 '20 17:08 nstepien