This is an example project about the usage of plonetheme-webpack-plugin in building Plone themes with Webpack.
Clone the project:
$ git clone https://github.com/datakurre/plonetheme.webpackexample $ cd plonetheme.webpackexample
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:
Please, note that Plone must be running while running the build, because webpack fetches all the default resources directly from a Plone site.