Giter VIP home page Giter VIP logo

Comments (14)

dlongley avatar dlongley commented on July 20, 2024

@tanx, yes, we've got support for the RequireJS optimizer. See these instructions here:

https://github.com/digitalbazaar/forge/tree/master/nodejs

You can use your own custom build.js file to include/exclude whatever modules you want.

from forge.

dlongley avatar dlongley commented on July 20, 2024

I added a minify.js file that will minimize the whole forge library.

from forge.

dlongley avatar dlongley commented on July 20, 2024

The pre-built version is here: https://github.com/digitalbazaar/forge/blob/master/js/forge.min.js

from forge.

tanx avatar tanx commented on July 20, 2024

@dlongley Thanks for the quick response! I tried to require('forge.min') and got "TypeError: object is not a function".

Is this minified file just for use inside the browser or can i require it as a node module as well? Thanks

from forge.

davidlehn avatar davidlehn commented on July 20, 2024

forge is in npm: https://npmjs.org/package/node-forge

npm install node-forge

from forge.

tanx avatar tanx commented on July 20, 2024

thanks ;)

I was just asking if its possible to use a single file for both environments. But it's not a big problem if not.

Thanks alot for the minified file... you saved me a few hours of works today :)

from forge.

dlongley avatar dlongley commented on July 20, 2024

@tanx, yeah, I don't think that minimized file will work in node, it's just meant for the browser.

from forge.

fermo111 avatar fermo111 commented on July 20, 2024

The link https://github.com/digitalbazaar/forge/blob/master/js/forge.min.js is broken

from forge.

dlongley avatar dlongley commented on July 20, 2024

@fermo111, yes, the minified version is no longer in git, it must be generated.

from forge.

nebojisa avatar nebojisa commented on July 20, 2024

Hi, I can not generate forge.min.js. Always popup some r.js. What to do? Thanks

from forge.

dlongley avatar dlongley commented on July 20, 2024

@nebojisa does #167 help at all?

from forge.

nebojisa avatar nebojisa commented on July 20, 2024

Thanks. thats it.

from forge.

dlongley avatar dlongley commented on July 20, 2024

Sure :)

from forge.

kin9puppy avatar kin9puppy commented on July 20, 2024

Here is a minified: http://digitalbazaar.github.io/forge/javascripts/forge/forge.min.0.6.12.js

also @dlongley why no prebuilt minified?

from forge.

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.