Skip to content

ryantallmadge/Codeigniter-minify-Javascript-and-CSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Codeigniter-minify-Javascript-and-CSS

Codeigniter minify Javascript and CSS

Example Use:

For JavaScript: Create a folder on the root of your web directory called “js”. This is where you will put all of you script files. Next, create your script tag in the HTML. Then as the source of your script tag add the route to the controller followed by the script files to be included. You can pass multiple script files by separating them with | .

<script type="text/javascript" src="/minify/js/script_one.js|script_two.js"></script>

For CSS: Create a folder on the root of your web directory call “css”. This is where you will put all the style sheets. Next, create your link tag in the HTML. Then as the href for the link tag add the route to the controller followed by the style sheets to be included. You can pass multiple script files by separating them with | .

<link href="/minify/css/sheet_one.css|sheet_two.css" rel="stylesheet" type="text/css" />

About

Codeigniter minify Javascript and CSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages