This repository is archived and read only.
If you want to unarchive it, then post to the Admin & Infrastructure (AI) Team category on the Plone Community Forum.
The plonetheme-preloader
is a Webpack preloader allows to override the default Plone theme with a custom theme.
Files (HTML, CSS) are overrided according their path (if the custom theme provides css/style.css
it will override css/style.css
from the default theme).
The custom theme can be provided as a local folder, or as a remote Plone backend.
npm install https://github.com/pyrenees/plonetheme-preloader.git
In webpack.config.js:
...
module: {
preLoaders: [{
test: /\.(html|css)$/,
loader: "plonetheme-preloader?themepath=src/my-theme"
}],
...
The theme path is relative to the app root.
In webpack.config.js:
...
module: {
preLoaders: [{
test: /\.(html|css)$/,
loader: "plonetheme-preloader?backend=http://plone"
}],
...