Set Content-Type correctly.
This commit is contained in:
parent
8045d5d41c
commit
0d3f420e8c
@ -216,10 +216,13 @@ module.exports = (grunt) ->
|
|||||||
aws:
|
aws:
|
||||||
command: """
|
command: """
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
aws s3 cp builds s3://<%= pkg.meta.awsBucket %>/builds --recursive --cache-control max-age=600
|
aws s3 cp builds/ s3://<%= pkg.meta.awsBucket %>/builds/ --recursive --exclude "*" --include "*.js" --cache-control "max-age=600" --content-type "application/javascript; charset=utf-8"
|
||||||
aws s3 cp img s3://<%= pkg.meta.awsBucket %>/img --recursive --cache-control max-age=600
|
aws s3 cp builds/ s3://<%= pkg.meta.awsBucket %>/builds/ --recursive --exclude "*" --include "*.crx" --cache-control "max-age=600" --content-type "application/x-chrome-extension"
|
||||||
aws s3 cp index.html s3://<%= pkg.meta.awsBucket %> --cache-control max-age=600
|
aws s3 cp builds/ s3://<%= pkg.meta.awsBucket %>/builds/ --recursive --exclude "*" --include "*.xml" --cache-control "max-age=600" --content-type "text/xml; charset=utf-8"
|
||||||
aws s3 cp web.css s3://<%= pkg.meta.awsBucket %> --cache-control max-age=600
|
aws s3 cp builds/ s3://<%= pkg.meta.awsBucket %>/builds/ --recursive --exclude "*" --include "*.zip" --cache-control "max-age=600" --content-type "application/zip"
|
||||||
|
aws s3 cp img/ s3://<%= pkg.meta.awsBucket %>/img/ --recursive --cache-control "max-age=600"
|
||||||
|
aws s3 cp index.html s3://<%= pkg.meta.awsBucket %> --cache-control "max-age=600" --content-type "text/html; charset=utf-8"
|
||||||
|
aws s3 cp web.css s3://<%= pkg.meta.awsBucket %> --cache-control "max-age=600" --content-type "text/css; charset=utf-8"
|
||||||
git checkout -
|
git checkout -
|
||||||
""".split('\n').join('&&')
|
""".split('\n').join('&&')
|
||||||
npm:
|
npm:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user