0.0.5 • Published 5 years ago

s3-remove-files-plugin v0.0.5

Weekly downloads
86
License
ISC
Repository
github
Last release
5 years ago

NOT READY!

S3 Remove Files Plugin

Webpack plugin for remove files from s3.

Install

npm install --save-dev s3-remove-files-plugin

Usage

In your webpack.config.js

const S3RemoveFilesPlugin = require('s3-remove-files-plugin');

module.exports = {
    // ...
    plugins: [
        new S3RemoveAssetsPlugin({
            config: {
                accessKeyId: process.env.S3_CREDENTIALS_ACCESS_KEY_ID,
                secretAccessKey: process.env.S3_CREDENTIALS_SECRET_ACCESS_KEY,
                region: process.env.S3_REGION
            },
            params: {
                Bucket: process.env.S3_BUCKET,
                Prefix: process.env.S3_BASE_PATH + 'assets'
            },
            include: /\.(js|css|gz)/,
            var: 'BUILD_NUMBER', // variable name
            count: 5 // number of builds to save
        })
    ]
};
0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago