seajs-bundler

1.0.3 • Public • Published

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  
}

Package Sidebar

Install

npm i seajs-bundler

Weekly Downloads

0

Version

1.0.3

License

ISC

Last publish

Collaborators

  • zechau