Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mincss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
mincss
Commits
0829ab94
Commit
0829ab94
authored
Jul 21, 2014
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed --keep-comments option (would make tokenization difficult)
parent
c6447bc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
9 deletions
+0
-9
main.ml
main.ml
+0
-5
stringify.ml
stringify.ml
+0
-2
types.ml
types.ml
+0
-2
No files found.
main.ml
View file @
0829ab94
...
@@ -6,7 +6,6 @@ type args = {
...
@@ -6,7 +6,6 @@ type args = {
mutable
outfile
:
string
option
;
mutable
outfile
:
string
option
;
mutable
verbose
:
int
;
mutable
verbose
:
int
;
mutable
echo
:
bool
;
mutable
echo
:
bool
;
mutable
keep_comments
:
bool
;
}
}
(* Parse command-line arguments *)
(* Parse command-line arguments *)
...
@@ -16,7 +15,6 @@ let parse_args () =
...
@@ -16,7 +15,6 @@ let parse_args () =
outfile
=
None
;
outfile
=
None
;
verbose
=
1
;
verbose
=
1
;
echo
=
false
;
echo
=
false
;
keep_comments
=
false
;
}
in
}
in
let
args_spec
=
[
let
args_spec
=
[
(
"<file> ..."
,
Arg
.
Rest
(
fun
_
->
()
)
,
(
"<file> ..."
,
Arg
.
Rest
(
fun
_
->
()
)
,
...
@@ -31,9 +29,6 @@ let parse_args () =
...
@@ -31,9 +29,6 @@ let parse_args () =
(
"--echo"
,
Arg
.
Unit
(
fun
_
->
args
.
echo
<-
true
)
,
(
"--echo"
,
Arg
.
Unit
(
fun
_
->
args
.
echo
<-
true
)
,
" Don't minify, just pretty-print the parsed CSS"
);
" Don't minify, just pretty-print the parsed CSS"
);
(
"--keep-comments"
,
Arg
.
Unit
(
fun
_
->
args
.
keep_comments
<-
true
)
,
"
\n
Preserve top-level comments"
);
]
in
]
in
let
usage
=
let
usage
=
...
...
stringify.ml
View file @
0829ab94
...
@@ -130,8 +130,6 @@ let rec string_of_statement = function
...
@@ -130,8 +130,6 @@ let rec string_of_statement = function
|
Supports
(
condition
,
statements
)
->
|
Supports
(
condition
,
statements
)
->
"@supports "
^
stringify_condition
" "
condition
^
"@supports "
^
stringify_condition
" "
condition
^
block
(
cat
"
\n\n
"
string_of_statement
statements
)
block
(
cat
"
\n\n
"
string_of_statement
statements
)
|
Comment
text
->
"/*"
^
text
^
"*/"
let
string_of_stylesheet
=
cat
"
\n\n
"
string_of_statement
let
string_of_stylesheet
=
cat
"
\n\n
"
string_of_statement
...
...
types.ml
View file @
0829ab94
...
@@ -50,8 +50,6 @@ type statement =
...
@@ -50,8 +50,6 @@ type statement =
(* @keyframes <id> { <rulesets> } *)
(* @keyframes <id> { <rulesets> } *)
|
Supports
of
condition
*
statement
list
|
Supports
of
condition
*
statement
list
(* @supports <condition> { <rulesets> } *)
(* @supports <condition> { <rulesets> } *)
|
Comment
of
string
(* /* ... */ *)
type
stylesheet
=
statement
list
type
stylesheet
=
statement
list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment