plonetheme.webpacktemplate
provides a mr.bob template to generate a webpack thema package for Plone.
$ pip install mr.bob
Now you can use it like this:
$ git clone https://github.com/datakurre/plonetheme.webpacktemplate.git
$ mrbob plonetheme.webpacktemplate
See the documentation of mr.bob for further information.
Start Plone and webpack-dev-server:
$ make watch
An example Plone site with hot-reloaded theme should be now available at http://localhost:8080/Plone/ (at first, the theme must be manually enabled from the configuration panel).
Production theme is built with:
$ make
Please, note that Plone must be running while running the build, because webpack fetches all the default resources directly from a Plone site.
Start Plone and webpack-dev-server:
$ make -f Makefile.vagrant watch
Production theme is built with:
$ make -f Makefile.vagrant