-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (48 loc) · 1.89 KB
/
index.html
File metadata and controls
52 lines (48 loc) · 1.89 KB
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
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Sanity by SkyzohKey</title>
<!-- This file is generated with CSS Sanity :D -->
<link rel="stylesheet" href="static/styles/style.min.css">
</head>
<body>
<div id="wrapper">
<header id="header">
<a id="logo" href="#">CSS Sanity</a>
<nav id="menu">
<ul>
<li><a href="https://github.com/csssanity/csssanity.github.io">View on GitHub</a></li>
<li><a href="https://raw.githubusercontent.com/csssanity/csssanity.github.io/master/csssanity.sh">Download</a></li>
</ul>
</nav>
</header>
<main>
<div id="content">
<h1>CSS Sanity</h1>
<h2>Cool CSS minifier written in bash!</h2>
<h3>How does it works?</h3>
<p>
First, CSS Sanity will use the given file name to determine where to lookup for file to minify. Then, it'll use cat to merge files matching *.css pattern in the given file name.
</p>
<p>
After that CSS Sanity will use some tr, perl and sed commands to remove all the useless characters and save the final minified file in the location you specified!
</p>
<p>
That's simple as this!
</p>
<h3>Usage</h3>
<p>Online version:</p>
<div class="code">
<span class="line">bash <span class="special"><(curl -s https://csssanity.github.io/csssanity.sh)</span> <span class="app">static/styles/file.min.css</span></span>
</div>
<p>Local version:</p>
<div class="code">
<span class="line">wget <span class="app">https://csssanity.github.io/csssanity.sh</span></span>
<span class="line">./csssanity.sh <span class="app">static/styles/file.min.css</span></span>
</div>
</div>
</main>
</div>
</body>
</html>