I am trying to enable the webpack theme package on an existing site. I've enabled the webpack theme per instructions for
plonetheme.webpacktemplate. The webpack theme works when I create a new Plone site (from scratch), however when I copy the existing ZODB to the buildout and run
make clean && make watch webpack returns an error (see https://gist.github.com/kcleong/059b3c975ac64c256c6481ec356f73b5). I did enable debug mode in
webpack.config.js to provide more info.
It seems the webpack default and custom theme are not added to the existing site. In
@@theming-controlpanel only the Barceloneta theme is active. I've also tried to reset the admin credentials to the default one. I did some digging and it seems the nodejs packages
plonetheme-upload take care of adding the default and custom theme, but my webpack and nodejs knowledge is limited.