sneridagh / plonetheme.webpacktemplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plonetheme.webpacktemplate

plonetheme.webpacktemplate provides a mr.bob template to generate a webpack thema package for Plone.

Generate a new theme

$ 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.

Usage

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.

Usage with Vagrant

Start Plone and webpack-dev-server:

$ make -f Makefile.vagrant watch

Production theme is built with:

$ make -f Makefile.vagrant

About


Languages

Language:Shell 35.4%Language:Batchfile 23.9%Language:HTML 10.7%Language:Ruby 10.0%Language:Puppet 7.6%Language:Makefile 6.7%Language:CSS 3.1%Language:JavaScript 2.6%