Skip to content

Python script that combines JavaScript files into one large file and minifies.

License

Notifications You must be signed in to change notification settings

joelcarlton/CombineAndMinify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CombineAndMinify

A Python script that combines JavaScript files into one large file and creates a master and minified version. Lets the developer work with multiple files and build one large include for the browser.

Created

2012

Version

1.0

Release Notes

1.0 (2012)
  • Initial build

Usage

  1. Clone CombineAndMinify into an existing project
  2. Add to .gitignore to exclude (GitHub)
  3. Edit paths in process.py
  4. Add files to source in files.txt.
  5. Run $ python process.py to combine and minify

process.py

fileList = 'files.txt'
jsPath = '../client/public/js/'
jsMaster = jsPath + 'master.js'
jsMinify = jsPath + 'minify.js'

files.txt

################ Comments Are Ignored ################
externaljs.js
externaljs2.js

Include master.js or minify.js in your project. All source files can be left separate and intact. After editing an include just run process.py again to rip off a new minify and master.

License

GNU GENERAL PUBLIC LICENSE Version 2, June 1991

About

Python script that combines JavaScript files into one large file and minifies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages