ofstudio
ofstudio

Reputation: 787

Can browserify combine my js files without including own code

Can browserifyJS compile my javascript project (browser code) in a single static file without adding own code at the top of the compiled file? The structure of my project is very simple (5-7 submodules) so I don't want to see any dependency management in runtime.

Is there any other tool to do this? (r.js or something else?)

Upvotes: 2

Views: 1329

Answers (2)

Ian Lim
Ian Lim

Reputation: 4284

It is possible for you to do this just by using Browserify alone, or you can use grunt-browserify. The impact will be you have to get use to writing node.js/CommonJS style require().

An example is avaiable here.

Upvotes: 2

ofstudio
ofstudio

Reputation: 787

The possible solution is to use Grunt requirejs plugin with AMDclean

Upvotes: 1

Related Questions