@@ -9,7 +9,8 @@ locations from.
99## Versioned files and Images
1010
1111` .js ` and ` .css ` files are versioned during upload using a hash of the file's
12- contents as to allow for cache-busting.
12+ contents as to allow for cache-busting. You can skip the automatic versioning
13+ by using the ` -skip-versioning ` flag.
1314
1415Images and other files are * not* versioned to allow for maximum caching and due
1516to their contents not changing very often like ` .css ` and ` .js ` files do.
@@ -31,19 +32,21 @@ Ensure your AWS credentials environment variables are set (`AWS_ACCESS_KEY_ID`,
3132
3233```
3334$ buffer-static-upload -h
34- Usage of buffer-static-upload:
35+ Usage of ./ buffer-static-upload:
3536 -bucket string
36- the s3 bucket to upload to (default "static.buffer.com")
37+ the s3 bucket to upload to (default "static.buffer.com")
3738 -dir string
38- required, the directory to upload files to in the bucket
39+ required, the directory to upload files to in the bucket
3940 -dry-run
40- print the output only, skip file uploads and manifest creation
41+ print the output only, skip file uploads and manifest creation
4142 -files string
42- the path to the files you'd like to upload, ex. "public/**/.*js,public/style.css"
43+ the path to the files you'd like to upload, ex. "public/**/.*js,public/style.css"
4344 -format string
44- format of the output [json,csv] (default "json")
45+ format of the output [json,csv] (default "json")
4546 -o string
46- the filename for the versions manifest (default "staticAssets.json")
47+ the filename for the versions manifest (default "staticAssets.json")
48+ -skip-versioning
49+ skip versioning uploaded files
4750 -v print the current buffer-static-upload version
4851```
4952
0 commit comments