0

when I use browsersync proxy with spring boot ? Although the page can autorefresh, but the static resources like css, js, html cannot be updated immediately.

So, whether is any idea to solve it ?

Thank you !

ps: i use IntelliJ IDEA

wenkang lin
  • 119
  • 1
  • 1
  • 10

1 Answers1

0

in browsersync docs, I have fund the options about serveStatic. This is link: https://browsersync.io/docs/options#option-serveStatic

I use the serveStatic, browsersync can reload page after serve static. It can guarantee the static resources like css, js, html can be updated immediately when reloading page.

wenkang lin
  • 119
  • 1
  • 1
  • 10