javascript - bundling js files with browserify -


i working angularjs front end. using grunt build tool want switch npm build tool per below link.

npm script build tool

now actual problem while bundling js without grunt

in grunt can have concate task quite easy configure. mention below js: ["src/*.js", "src/**/*.js", "!src/apig/*.js", "!src/apig/**/*.js"],

right per limited knowledge browserify can use bundling local javascript.(if can suggest me other package bundling javascript files .. welcome !!)

with browserify have tried following in package.json didnt work

 "build:bundle": "browserify "src/*.js", "src/**/*.js", "!src/apig/*.js", "!src/apig/**/*.js" -o ./dist/js/bundle.js", 

can suggest me how bundle nested javascript options ignore , all. in browserfy.

i dnt wanted use "require()" include javascript. want simple bundling of files in project , ignore vendor files. etc..

also if can suggest minification well. :) (i expecting here know :) )

thanks in advance.


Comments