Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mincss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
mincss
Commits
0829ab94
Commit
0829ab94
authored
10 years ago
by
Taddeüs Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Removed --keep-comments option (would make tokenization difficult)
parent
c6447bc5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.ml
+0
-5
0 additions, 5 deletions
main.ml
stringify.ml
+0
-2
0 additions, 2 deletions
stringify.ml
types.ml
+0
-2
0 additions, 2 deletions
types.ml
with
0 additions
and
9 deletions
main.ml
+
0
−
5
View file @
0829ab94
...
...
@@ -6,7 +6,6 @@ type args = {
mutable
outfile
:
string
option
;
mutable
verbose
:
int
;
mutable
echo
:
bool
;
mutable
keep_comments
:
bool
;
}
(* Parse command-line arguments *)
...
...
@@ -16,7 +15,6 @@ let parse_args () =
outfile
=
None
;
verbose
=
1
;
echo
=
false
;
keep_comments
=
false
;
}
in
let
args_spec
=
[
(
"<file> ..."
,
Arg
.
Rest
(
fun
_
->
()
)
,
...
...
@@ -31,9 +29,6 @@ let parse_args () =
(
"--echo"
,
Arg
.
Unit
(
fun
_
->
args
.
echo
<-
true
)
,
" Don't minify, just pretty-print the parsed CSS"
);
(
"--keep-comments"
,
Arg
.
Unit
(
fun
_
->
args
.
keep_comments
<-
true
)
,
"
\n
Preserve top-level comments"
);
]
in
let
usage
=
...
...
This diff is collapsed.
Click to expand it.
stringify.ml
+
0
−
2
View file @
0829ab94
...
...
@@ -130,8 +130,6 @@ let rec string_of_statement = function
|
Supports
(
condition
,
statements
)
->
"@supports "
^
stringify_condition
" "
condition
^
block
(
cat
"
\n\n
"
string_of_statement
statements
)
|
Comment
text
->
"/*"
^
text
^
"*/"
let
string_of_stylesheet
=
cat
"
\n\n
"
string_of_statement
...
...
This diff is collapsed.
Click to expand it.
types.ml
+
0
−
2
View file @
0829ab94
...
...
@@ -50,8 +50,6 @@ type statement =
(* @keyframes <id> { <rulesets> } *)
|
Supports
of
condition
*
statement
list
(* @supports <condition> { <rulesets> } *)
|
Comment
of
string
(* /* ... */ *)
type
stylesheet
=
statement
list
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment