Combine a list of JavaScript files Into a single master and minified version
8/2013
12/2013
1.0.2
- Updated documentation to include absolute paths and notes
- Added project description
- Fixed syntax error
- Initial build
In order to use CombineAndMinify your project must be saved to a .sublime-project.
- Click Project from Menu Bar
- Click Save Project As
- Name and Save
- Click Project > Edit Project
- Add Settings for CombineAndMinify
- Save project file
- Make files.txt with a list of files that should be processed at the location specified with FileList
- Run by using key command, tools menu, right click menu, or command palette
Notes:
- Paths may need to be set up as absolute to work
- InPath and OutPath require a trailing directory /
{
"settings":
{
"Combine: FileList": "/files.txt",
"Combine: InPath": "/public/js/"
}
}
{
"folders":
[
{
"path": "/path/to/working/files"
}
],
"settings":
{
"Combine: FileList": "/path/to/working/files/files.txt",
"Combine: InPath": "/path/to/working/files/public/js/",
"Combine: OutPath": "/path/to/working/files/private/js/",
"Combine: MasterName": "master.js",
"Combine: MinifyName": "master.min.js"
}
}
################ Comments Are Ignored ################
externaljs.js
externaljs2.js
- FileList and InPath are required.
- OutPath is not required and will default to InPath unlesss specified otherwise.
- MasterName and MinifyName are not required and will resolve to master.js and master.min.js unlesss specified otherwise
GNU GENERAL PUBLIC LICENSE Version 2, June 1991