-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminify.php
45 lines (31 loc) · 1.01 KB
/
minify.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
require './vendor/autoload.php';
use MatthiasMullie\Minify;
/*~~~~~~~~~~JavaScript~~~~~~~~~~*/
$sourcePath = './js/main.js';
$minifier = new Minify\JS($sourcePath);
// save minified file to disk
$minifiedPath = './dist/js/main.js';
$minifier->minify($minifiedPath);
$sourcePath = './js/imageLoad.js';
$minifier = new Minify\JS($sourcePath);
// save minified file to disk
$minifiedPath = './dist/js/imageLoad.js';
$minifier->minify($minifiedPath);
/*~~~~~~~~~~CSS~~~~~~~~~~*/
/* Movie.css */
$sourcePath = './css/movie.css';
$minifier = new Minify\CSS($sourcePath);
$minifiedPath = './dist/css/movie.css';
$minifier->minify($minifiedPath);
/* Category.css */
$sourcePath = './css/category.css';
$minifier = new Minify\CSS($sourcePath);
$minifiedPath = './dist/css/category.css';
$minifier->minify($minifiedPath);
/* Category.css */
$sourcePath = './css/mobile.css';
$minifier = new Minify\CSS($sourcePath);
$minifiedPath = './dist/css/mobile.css';
$minifier->minify($minifiedPath);
echo 'Minified Successfully';