Narcissistic Piano Mover
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

metalsmith-cloudfront

1.0.0 • Public • Published

metalsmith-cloudfront

Metalsmith plugin for invalidating files in Amazon CloudFront cache. To be used in conjunction with metalsmith-s3.

Details on CloudFront cache invalidation: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html Note: Invalidating the CloudFront cache can take a few minutes.

Build Status npm version

Installation

$ npm i metalsmith-cloudfront

Parameters

  • dist: CloudFront Distribution ID
  • paths: Array of paths to invalidate. All paths must start with /.

Usage

const Metalsmith = require('metalsmith');
const s3 = require('metalsmith-s3');
const cloudfront = require('metalsmith-cloudfront');
 
const metalsmith = new Metalsmith(__dirname)
  .use(s3({
    action: 'write',
    bucket: 's3-bucket-dest'
  }))
  .use(cloudfront({
      dist: 'cloudFrontDisributionId',
      paths: [
        '/*'
      ]
  }))

License

The MIT License (MIT)

Change Log

Change Log

install

npm i metalsmith-cloudfront

Downloadsweekly downloads

10

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability