MikaAK / s3-plugin-webpack

Uploads files to s3 after complete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FeatureRequest] add CloudFront support

MaxmaxmaximusGitHub opened this issue · comments

Please add AWS CloudFront support.

Motivation:

  1. AWS S3 is slow and for users assets (like avatars, uploaded video e.t.c.)
  2. AWS CloudFront is fast and for site UI assets, like icons and styles.

webpack should not and cannot handle users assets, but webpack just needs to process site UI assets, which CloudFront is for

AWS cloudfront is fully supported, you can do cache invalidations already and S3 is just the storage while cloudfront is the CDN!