1.0.3 • Published 8 years ago

seajs-bundler v1.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

SeaJS Bundler

A solution to resolve seajs module bundling. It parses the dependence recursively from the entrance module, then bundles all modules together in rgith loading order.

installation

npm install seajs-bundler

##usage > cd /path/to/project/
> vim build_config.json
> seajs-bundler

run above command will output the finally bundled file.

or

require("seajs-bundler");

##config
config file: build_config.json

config items

{  
	"project_dir": "/path/to/your/project",
	
	//component dir  
	"comp_dir": "component",
	
	//dir seajs locates  
	"seajs_dir": "lib",  
	
	//seajs alias config  
	"alias": {  
    		"$": "jquery"  
    	},  
	
	//entrance module  
	"seajs_entrance": "main.js", 
	
	//dir where bundled file ouputs   
	"output": "./output",  
	
	//whether minify  
	"minify": true  
}
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago