@jwalsh/grunt-invalidate-cloudfront
v1.0.4
Published
Sends a invalidation request to amazon cloudfront
Downloads
4
Maintainers
Readme
grunt-invalidate-cloudfront
Sends a invalidation request to Amazon CloudFront.
Getting Started
npm install @jwalsh/grunt-invalidate-cloudfront --save-dev
One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-invalidate-cloudfront');
The "invalidate_cloudfront" task
Example
In your project's Gruntfile, add a section named invalidate_cloudfront
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
invalidate_cloudfront: {
options: {
distribution: 'XXXXXX'
},
production: {
files: [{
expand: true,
cwd: './build/',
src: ['**/*'],
filter: 'isFile',
dest: ''
}]
}
}
})
Release History
- 2013-05-05 - First release