ghost-storage-preprocessor

0.0.0 • Public • Published

Ghost Storage Preprocessor

Preprocess uploads to Ghost

This module must be used with ghost-storage-preprocessor transform(s) and a storage adapter.

NOTE: This module is experimental. At the moment, only the default installation using ghost-cli and the below installation is supported.

Installation

# Install preprocessor 
$ npm install ghost-storage-preprocessor
$ mkdir -p ./content/adapters/storage
$ cp -r ./node_modules/ghost-storage-preprocessor ./content/adapters/storage/preprocessor
 
# Install preprocessor transform 
$ npm install ghost-storage-preprocessor-imagemin
$ mkdir -p ./content/adapters/storage/preprocessor/transforms
$ cp -r ./node_modules/ghost-storage-preprocessor-imagemin ./content/adapters/storage/preprocessor/transforms/imagemin

Configuration

{
  "storage": {
    "active": "preprocessor",
    "preprocessor": {
      // Storage transformer (installed separately)
      "transforms": [
        ["imagemin", { /* imagemin transform opts */ }]
      ],
 
      // Optional, storage adapter to pass transformed uploads to (installed separately). Defaults to local file system.
      "use": "s3"
    },
    "s3": {
      ...
    }
  }
}

Dependents (0)

Package Sidebar

Install

npm i ghost-storage-preprocessor

Weekly Downloads

0

Version

0.0.0

License

WTFPL

Unpacked Size

7.03 kB

Total Files

3

Last publish

Collaborators

  • caseywebb