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
22a73354
Commit
22a73354
authored
Oct 01, 2014
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-enabled separate shorthand unfolding for correct duplicate pruning
parent
be507da6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
main.ml
main.ml
+8
-4
shorthand.ml
shorthand.ml
+2
-1
No files found.
main.ml
View file @
22a73354
...
...
@@ -130,10 +130,14 @@ let handle_args args =
let
input
,
css
=
parse_files
args
.
infiles
in
let
css
=
css
|>
(
switch
args
.
color
Color
.
compress
)
(*|> (switch args.font Font.compress)*)
|>
(
switch
args
.
shorthands
Shorthand
.
compress
)
(*|> (switch args.duplicates Duplicates.compress)*)
|>
switch
args
.
color
Color
.
compress
(*|> switch args.font Font.compress*)
(* unfold before pruning duplicates so that shorthand components are
* correctly pruned *)
|>
switch
args
.
shorthands
Shorthand
.
unfold_stylesheet
(*|> switch args.duplicates Duplicates.compress*)
|>
switch
args
.
shorthands
Shorthand
.
compress
in
let
output
=
if
args
.
whitespace
...
...
shorthand.ml
View file @
22a73354
...
...
@@ -232,7 +232,8 @@ let rec unfold = function
let
make_shorthands
decls
=
(* unfold currently existing shorthands into separate properties for merging
* with override properties that are defined later on *)
let
decls
=
unfold
decls
in
(*let decls = unfold decls in
XXX: done by main function for correct pruning of duplicate declarations*)
(* find shorthand names for which properties are present *)
let
rec
find_props
=
function
...
...
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