Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

plone/plonetheme-preloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

plonetheme-preloader

Purpose

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.

Usage

npm install https://github.com/pyrenees/plonetheme-preloader.git

Local folder

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.

Plone backend

In webpack.config.js:

    ...
    module: {
        preLoaders: [{
          test: /\.(html|css)$/,
          loader: "plonetheme-preloader?backend=http://plone"
        }],
    ...

License

BSD (http://opensource.org/licenses/BSD-3-Clause)

About

Plone theme preloader module for webpack

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published