plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
425 stars 575 forks source link

Reload of `node_modules/@plone/volto` resources stopped working in 17alpha #4798

Closed sneridagh closed 11 months ago

sneridagh commented 11 months ago

It seems that while developing in 17alpha the ability of reload when changing something from Volto sources (node_modules/@plone/volto, eg. the omelette folder) stopped working.

I think it's because this change is not working in Webpack 5 for some reason.

Original in 16:

https://github.com/plone/volto/pull/4109/files#diff-151d6a417026214923e599dfce0dcbb43dff9cf437f21d042f426071e567fcd2R298-R301

Migrated to Webpack 5:

https://github.com/plone/volto/blob/master/razzle.config.js#L342-L344

@davisagli could you please take a look? Thanks!