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

Hot Module Replacement (HMR) #314

Open
nstepien opened this issue Aug 23, 2020 · 0 comments
Open

Hot Module Replacement (HMR) #314

nstepien opened this issue Aug 23, 2020 · 0 comments

Comments

@nstepien
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment