GithubHelp home page GithubHelp logo

Comments (5)

MikaAK avatar MikaAK commented on June 1, 2024 1

Thanks for the feedback. I'll try to get to fixing this soon. For now, I would downgrade unless necessary. I'm not actually 100% sure how the cloudfront invalidation actually works so I will have to do some research and figure out how best to get around this. @flipxfx may be able to guess on this right away though

from s3-plugin-webpack.

thescientist13 avatar thescientist13 commented on June 1, 2024 1

Yeah, refactoring my build seems to have resolved my issue. Hope this can help someone else at least.

from s3-plugin-webpack.

aMoRRoMa avatar aMoRRoMa commented on June 1, 2024

I have same problem :(

from s3-plugin-webpack.

flippidippi avatar flippidippi commented on June 1, 2024

Weird that the error is shown before as the invalidation happens after right? This error seems to be related to s3. andrewrk/node-s3-client#68 (comment)

from s3-plugin-webpack.

thescientist13 avatar thescientist13 commented on June 1, 2024

Doing some more testing locally and I think I have narrowed down the issue to my usage of CopyWebpackPlugin with a large directory from node_modules for loading CKEditor as part of my Angular app's bundle. Without this in my common build, everything works with no error, including Cloudfront invalidation.

new CopyWebpackPlugin([{
  //TODO add using import?
  context: './node_modules/ckeditor/',
  from: '**/**',
  to: './assets/vendor/ckeditor/'
}]),

In reviewing options for optimizing the loading of ckeditor (which is about 15MB) I noticed a newer version ng2-ckeditor that was released that supports Angular's NgModule, which may provide a better bundling opportunity and reduce the dependency on CopyWebpackPlugin and greedy copying all files from that directory in node_modules.

from s3-plugin-webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.