astroturfcss / astroturf

Better Styling through Compiling: CSS-in-JS for those that want it all.
https://astroturfcss.github.io/astroturf/
MIT License
2.28k stars 59 forks source link

Styles do not update in webpack watch mode #736

Open thers opened 2 years ago

thers commented 2 years ago

Just like in #665 , but on most recent webpack 5.65.0, all consecutive changes after first one are ignored.

Quick fiddling showed that apparently API has changed a bit, and now here must be fileWatcher.watcher.* instead of fileWatcher.*.

image

jquense commented 2 years ago

happy to take a PR that supports both the old and new here.

RobMaple commented 2 years ago

Sorry to jump in here but currently facing the same issue. Is the PR likely to merged?

vadim-kudr commented 1 year ago

Try to use useAltLoader: true. It helped me for storybook + react-refresh.

{
  loader: 'astroturf/loader',
  options: { enableCssProp: true, useAltLoader: true },
},