Skip to content

PHP file that will concatenate & minify JavaScript files depending on their file-modification dates

Notifications You must be signed in to change notification settings

steveosoule/cached-jsmin-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

cached-jsmin-php

PHP file that will concatenate & minify JavaScript files depending on their file-modification dates.

The cached.js.php file will compare the modified time of the source files, compare it to the modified time of the output file, and it will concatenate & minify the files as necessary.

Usage

  1. Update the file paths in js/cached-js.php
  2. Upload js/cached-js.php & js/JSmin.php to the server.
  3. Add the script tag to your HTML page.
<script src="path/to/js/cached-js.php"></script>

JavaScript minification done with https://github.com/rgrove/jsmin-php

About

PHP file that will concatenate & minify JavaScript files depending on their file-modification dates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages