@platformos/gatsby-plugin-posify

0.0.2 • Public • Published

gatsby-plugin-posify

Gatsby post-build plugin that creates platformOS release files.

Installation

npm install @platformos/gatsby-plugin-posify

Usage

gatsby-config.js

module.exports = {
  assetPrefix: 'https://uploads.staging.oregon.platform-os.com/instances/<YOUR_INSTANCE_ID>/assets',

  plugins: [
    '@platformos/gatsby-plugin-posify'
  ]
}

The plugin will create the files in the .posify folder in your project root. You can then copy or move the contents of the .posify folder to your pOS project root in a postbuild npm script:

package.json

"scripts": {
  "postbuild": "cp -R .posify/* ../pos" // where `../pos` is the relative path of your pOS project root
}, 

Dependencies

This plugin uses gatsby-plugin-content-hash to add a hash to page-data json files.

Package Sidebar

Install

npm i @platformos/gatsby-plugin-posify

Weekly Downloads

2

Version

0.0.2

License

CC-BY-4.0

Unpacked Size

19.5 kB

Total Files

6

Last publish

Collaborators

  • zetiks
  • nemvalid
  • krajek6
  • piotrze
  • godotow