Coder Social home page Coder Social logo

Comments (3)

mikerhyssmith avatar mikerhyssmith commented on May 30, 2024

I'd be happy to take a look at this, not sure what approach you had in mind, but Id assume adding in tree shaking and minification etc into the webpack config ?

from obs-websocket-js.

haganbmj avatar haganbmj commented on May 30, 2024

Yeah, definitely the tree shaking at least.
I had an uglify plugin in grunt, but it doesn't seem to support some es6 functionality. Being that I'm not generating docs right now Grunt doesn't really have a purpose.

There's just not much sense in letting this project be 135kb full of extra crpyto functionality.

EDIT: As some additional info on this, here's the built file.

from obs-websocket-js.

haganbmj avatar haganbmj commented on May 30, 2024

Swapped over to webpack entirely, re-added a .min build which comes in right around 40kb.
It could certainly go smaller - still pulling in a lot of excess for sha256, but I'm content with that for the moment at least.
I'll likely end up just copying only the sha256 functions necessary directly into this project and removing the dependency.. Or look for a smaller package.

from obs-websocket-js.

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.