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  
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i seajs-bundler

Weekly Downloads

2

Version

1.0.3

License

ISC

Last publish

Collaborators

  • zechau